diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2014-03-12 03:20:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-13 20:39:20 +0100 |
commit | d59b7d8059ddc4f9ac1f0904d28ea62a252e8de7 (patch) | |
tree | 7aa563d736287fe18daace9bbe0919c240715dab /net/sched/sch_hhf.c | |
parent | bcm63xx_enet: Stop pretending to support netpoll (diff) | |
download | linux-d59b7d8059ddc4f9ac1f0904d28ea62a252e8de7.tar.xz linux-d59b7d8059ddc4f9ac1f0904d28ea62a252e8de7.zip |
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_hhf.c')
-rw-r--r-- | net/sched/sch_hhf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_hhf.c b/net/sched/sch_hhf.c index 647680b1c625..edee03d922e2 100644 --- a/net/sched/sch_hhf.c +++ b/net/sched/sch_hhf.c @@ -691,8 +691,7 @@ static int hhf_dump(struct Qdisc *sch, struct sk_buff *skb) nla_put_u32(skb, TCA_HHF_NON_HH_WEIGHT, q->hhf_non_hh_weight)) goto nla_put_failure; - nla_nest_end(skb, opts); - return skb->len; + return nla_nest_end(skb, opts); nla_put_failure: return -1; |