summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_sfq.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-08-10 10:45:40 +0200
committerDavid S. Miller <davem@davemloft.net>2010-08-10 11:51:11 +0200
commit9871e50edd25e2adf69b369817100821cb1e6de8 (patch)
treeba44998e2c45d3ff842c42dd7fcc4e2c0e69e4e6 /net/sched/sch_sfq.c
parentisdn: mISDN: call pci_disable_device() if pci_probe() failed (diff)
downloadlinux-9871e50edd25e2adf69b369817100821cb1e6de8.tar.xz
linux-9871e50edd25e2adf69b369817100821cb1e6de8.zip
net: Use NET_XMIT_SUCCESS where possible.
This is based on work originally done by Patric McHardy. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_sfq.c')
-rw-r--r--net/sched/sch_sfq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c
index d8e0ae5fa16a..b8bcb2096df8 100644
--- a/net/sched/sch_sfq.c
+++ b/net/sched/sch_sfq.c
@@ -334,7 +334,7 @@ sfq_enqueue(struct sk_buff *skb, struct Qdisc *sch)
if (++sch->q.qlen <= q->limit) {
sch->bstats.bytes += qdisc_pkt_len(skb);
sch->bstats.packets++;
- return 0;
+ return NET_XMIT_SUCCESS;
}
sfq_drop(sch);