Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99315ad4 authored by Ying Xue's avatar Ying Xue Committed by David S. Miller
Browse files

tipc: remove unused between routine

parent 58311d16
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -253,15 +253,6 @@ static inline u32 mod(u32 x)
	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)
{
	return mod(right - left) < 32768u;