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>
This commit is contained in:
Yang Yingliang
2014-03-12 10:20:32 +08:00
committed by David S. Miller
parent 31c14a9703
commit d59b7d8059
8 changed files with 9 additions and 18 deletions

View File

@@ -450,8 +450,7 @@ static int fq_codel_dump(struct Qdisc *sch, struct sk_buff *skb)
q->flows_cnt))
goto nla_put_failure;
nla_nest_end(skb, opts);
return skb->len;
return nla_nest_end(skb, opts);
nla_put_failure:
return -1;