aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-17 07:03:43 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-17 22:21:32 -0400
commit93245dd6d356b864f6676396a9f3edecbd378ed0 (patch)
tree8854a99fa12d30b1606e4d5c0bb3bbaae54fd6b5
parent99194cff398d056e5ee469647c294466c246c88a (diff)
pkt_sched: Don't used locked skb_queue_purge() in __qdisc_reset_queue()
We have to have exclusive access to the given qdisc anyways, so doing even more locking is superfluous. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/sch_generic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index 2902a42564f0..0a158ff4de12 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -374,7 +374,7 @@ static inline void __qdisc_reset_queue(struct Qdisc *sch,
374 * We do not know the backlog in bytes of this list, it 374 * We do not know the backlog in bytes of this list, it
375 * is up to the caller to correct it 375 * is up to the caller to correct it
376 */ 376 */
377 skb_queue_purge(list); 377 __skb_queue_purge(list);
378} 378}
379 379
380static inline void qdisc_reset_queue(struct Qdisc *sch) 380static inline void qdisc_reset_queue(struct Qdisc *sch)