[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20081209102138.GD14862@ff.dom.local>
Date: Tue, 9 Dec 2008 10:21:38 +0000
From: Jarek Poplawski <jarkao2@...il.com>
To: David Miller <davem@...emloft.net>
Cc: Martin Devera <devik@....cz>, Patrick McHardy <kaber@...sh.net>,
netdev@...r.kernel.org
Subject: [PATCH 4/6] pkt_sched: sch_htb: Change if () check in htb_dequeue()
Skip "event" in if () in htb_dequeue(): it's always > 0 at this place.
Signed-off-by: Jarek Poplawski <jarkao2@...il.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists