From: Alan D. Brunelle Fix range check: use proper data type for comparison Signed-off-by: Alan D. Brunelle --- btt/inlines.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/btt/inlines.h b/btt/inlines.h index 3c8deac..edb2182 100644 --- a/btt/inlines.h +++ b/btt/inlines.h @@ -52,7 +52,7 @@ static inline void update_range(struct list_head *head_p, __u64 time) if (time < rip->end) return; - if ((time - rip->end) < range_delta) { + if (BIT_TIME(time - rip->end) < range_delta) { rip->end = time; return; }