diff options
author | Ben Greear <greearb@candelatech.com> | 2010-08-10 12:45:40 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-10 13:51:11 +0400 |
commit | 9871e50edd25e2adf69b369817100821cb1e6de8 (patch) | |
tree | ba44998e2c45d3ff842c42dd7fcc4e2c0e69e4e6 /net/sched/sch_tbf.c | |
parent | 06d88e4a88cf6a90de6f0744e2cc320eb67aac81 (diff) | |
download | linux-9871e50edd25e2adf69b369817100821cb1e6de8.tar.xz |
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_tbf.c')
-rw-r--r-- | net/sched/sch_tbf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c index 0991c640cd3e..641a30d64635 100644 --- a/net/sched/sch_tbf.c +++ b/net/sched/sch_tbf.c @@ -127,7 +127,7 @@ static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch) return qdisc_reshape_fail(skb, sch); ret = qdisc_enqueue(skb, q->qdisc); - if (ret != 0) { + if (ret != NET_XMIT_SUCCESS) { if (net_xmit_drop_count(ret)) sch->qstats.drops++; return ret; @@ -136,7 +136,7 @@ static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch) sch->q.qlen++; sch->bstats.bytes += qdisc_pkt_len(skb); sch->bstats.packets++; - return 0; + return NET_XMIT_SUCCESS; } static unsigned int tbf_drop(struct Qdisc* sch) |