aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2014-03-11 22:20:32 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-13 15:39:20 -0400
commitd59b7d8059ddc4f9ac1f0904d28ea62a252e8de7 (patch)
tree7aa563d736287fe18daace9bbe0919c240715dab /net/sched/sch_hfsc.c
parent31c14a97039f6706205648602c81426f878906d0 (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_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index c4075610502c..ec8aeaac1dd7 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1353,8 +1353,7 @@ hfsc_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb,
1353 goto nla_put_failure; 1353 goto nla_put_failure;
1354 if (hfsc_dump_curves(skb, cl) < 0) 1354 if (hfsc_dump_curves(skb, cl) < 0)
1355 goto nla_put_failure; 1355 goto nla_put_failure;
1356 nla_nest_end(skb, nest); 1356 return nla_nest_end(skb, nest);
1357 return skb->len;
1358 1357
1359 nla_put_failure: 1358 nla_put_failure:
1360 nla_nest_cancel(skb, nest); 1359 nla_nest_cancel(skb, nest);