Subject: [PATCH 4/6] pkt_sched: sch_htb: Change if () check in htb_dequeue()

From: Jarek Poplawski <[email-masked]>
Date: Tue, 9 Dec 2008 10:21:38 +0000

Skip "event" in if () in htb_dequeue(): it's always > 0 at this place.

Signed-off-by: Jarek Poplawski <[email-masked]>
---
 net/sched/sch_htb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index b241ac6..2e0a74c 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -879,7 +879,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
 		} else
 			event = q->near_ev_cache[level];
 
-		if (event && next_event > event)
+		if (next_event > event)
 			next_event = event;
 
 		m = ~q->row_mask[level];
-- 
1.5.6.5