diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2014-03-11 22:20:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-13 15:39:20 -0400 |
commit | d59b7d8059ddc4f9ac1f0904d28ea62a252e8de7 (patch) | |
tree | 7aa563d736287fe18daace9bbe0919c240715dab /net/sched/sch_fq.c | |
parent | 31c14a97039f6706205648602c81426f878906d0 (diff) |
net_sched: return nla_nest_end() instead of skb->len
nla_nest_end() already has return skb->len, so replace
return skb->len with return nla_nest_end instead().
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_fq.c')
-rw-r--r-- | net/sched/sch_fq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c index 21e251766eb1..23c682b42f99 100644 --- a/net/sched/sch_fq.c +++ b/net/sched/sch_fq.c | |||
@@ -781,8 +781,7 @@ static int fq_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
781 | nla_put_u32(skb, TCA_FQ_BUCKETS_LOG, q->fq_trees_log)) | 781 | nla_put_u32(skb, TCA_FQ_BUCKETS_LOG, q->fq_trees_log)) |
782 | goto nla_put_failure; | 782 | goto nla_put_failure; |
783 | 783 | ||
784 | nla_nest_end(skb, opts); | 784 | return nla_nest_end(skb, opts); |
785 | return skb->len; | ||
786 | 785 | ||
787 | nla_put_failure: | 786 | nla_put_failure: |
788 | return -1; | 787 | return -1; |