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>
This commit is contained in:
parent
58311d1690
commit
99315ad43d
|
@ -253,15 +253,6 @@ static inline u32 mod(u32 x)
|
||||||
return x & 0xffffu;
|
return x & 0xffffu;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int between(u32 lower, u32 upper, u32 n)
|
|
||||||
{
|
|
||||||
if ((lower < n) && (n < upper))
|
|
||||||
return 1;
|
|
||||||
if ((upper < lower) && ((n > lower) || (n < upper)))
|
|
||||||
return 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int less_eq(u32 left, u32 right)
|
static inline int less_eq(u32 left, u32 right)
|
||||||
{
|
{
|
||||||
return mod(right - left) < 32768u;
|
return mod(right - left) < 32768u;
|
||||||
|
|
Loading…
Reference in New Issue