aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2014-11-25 22:41:50 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-26 12:30:17 -0500
commit99315ad43d92a8df0e4a30a0694336cdcdb7965f (patch)
treec86b5a365ec80fe2f70ceec61e8a74fc486608f0 /net/tipc
parent58311d169083f1940c7ce64cb6bf736e2a023cd0 (diff)
tipc: remove unused between routine
Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/link.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h
index 1681076cb339..771123413d5f 100644
--- a/net/tipc/link.h
+++ b/net/tipc/link.h
@@ -253,15 +253,6 @@ static inline u32 mod(u32 x)
253 return x & 0xffffu; 253 return x & 0xffffu;
254} 254}
255 255
256static inline int between(u32 lower, u32 upper, u32 n)
257{
258 if ((lower < n) && (n < upper))
259 return 1;
260 if ((upper < lower) && ((n > lower) || (n < upper)))
261 return 1;
262 return 0;
263}
264
265static inline int less_eq(u32 left, u32 right) 256static inline int less_eq(u32 left, u32 right)
266{ 257{
267 return mod(right - left) < 32768u; 258 return mod(right - left) < 32768u;