tipc: reduce locking scope during packet reception
[deliverable/linux.git] / net / tipc / core.h
index 0fcf133d5cb7cef0f33478412cb75809b68a8223..f4ed67778c54269a18479f2435aa7077503f6edd 100644 (file)
@@ -129,6 +129,11 @@ static inline int less(u16 left, u16 right)
        return less_eq(left, right) && (mod(right) != mod(left));
 }
 
+static inline int in_range(u16 val, u16 min, u16 max)
+{
+       return !less(val, min) && !more(val, max);
+}
+
 #ifdef CONFIG_SYSCTL
 int tipc_register_sysctl(void);
 void tipc_unregister_sysctl(void);
This page took 0.023445 seconds and 5 git commands to generate.