diff options
author | Eric Dumazet <edumazet@google.com> | 2012-05-04 00:37:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-04 11:50:05 -0400 |
commit | 17045755193a93fbd2d97db9aad5e726fc8c2a6d (patch) | |
tree | c12afe250c532626d752f4d894f9537e9d292d0c /net/sched/sch_teql.c | |
parent | 041441d0f0d885619d48f8f7682825ace523cf59 (diff) |
net: sched: factorize code (qdisc_drop())
Use qdisc_drop() helper where possible.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_teql.c')
-rw-r--r-- | net/sched/sch_teql.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c index 45326599fda3..ca0c29695d51 100644 --- a/net/sched/sch_teql.c +++ b/net/sched/sch_teql.c | |||
@@ -88,9 +88,7 @@ teql_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
88 | return NET_XMIT_SUCCESS; | 88 | return NET_XMIT_SUCCESS; |
89 | } | 89 | } |
90 | 90 | ||
91 | kfree_skb(skb); | 91 | return qdisc_drop(skb, sch); |
92 | sch->qstats.drops++; | ||
93 | return NET_XMIT_DROP; | ||
94 | } | 92 | } |
95 | 93 | ||
96 | static struct sk_buff * | 94 | static struct sk_buff * |