From: David S. Miller Date: Thu, 17 Jul 2008 11:03:43 +0000 (-0700) Subject: pkt_sched: Don't used locked skb_queue_purge() in __qdisc_reset_queue() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93245dd6d356b864f6676396a9f3edecbd378ed0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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, * We do not know the backlog in bytes of this list, it * is up to the caller to correct it */ - skb_queue_purge(list); + __skb_queue_purge(list); } static inline void qdisc_reset_queue(struct Qdisc *sch)