aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-26 02:06:12 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:26:37 -0400
commitdc5fc579b90ed0a9a4e55b0218cdbaf0a8cf2e67 (patch)
tree673dbb425c2b09b4256ef71f89dfc5cc01944386 /net/sched/sch_hfsc.c
parenta36ca733375860b389c15ffdf6a5f92df64a33b6 (diff)
[NETLINK]: Use nlmsg_trim() where appropriate
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index 80e6f811e3b..6a762cf781d 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -65,6 +65,7 @@
65#include <linux/netdevice.h> 65#include <linux/netdevice.h>
66#include <linux/rtnetlink.h> 66#include <linux/rtnetlink.h>
67#include <linux/pkt_sched.h> 67#include <linux/pkt_sched.h>
68#include <net/netlink.h>
68#include <net/pkt_sched.h> 69#include <net/pkt_sched.h>
69#include <net/pkt_cls.h> 70#include <net/pkt_cls.h>
70#include <asm/system.h> 71#include <asm/system.h>
@@ -1378,7 +1379,7 @@ hfsc_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb,
1378 return skb->len; 1379 return skb->len;
1379 1380
1380 rtattr_failure: 1381 rtattr_failure:
1381 skb_trim(skb, b - skb->data); 1382 nlmsg_trim(skb, b);
1382 return -1; 1383 return -1;
1383} 1384}
1384 1385
@@ -1584,7 +1585,7 @@ hfsc_dump_qdisc(struct Qdisc *sch, struct sk_buff *skb)
1584 return skb->len; 1585 return skb->len;
1585 1586
1586 rtattr_failure: 1587 rtattr_failure:
1587 skb_trim(skb, b - skb->data); 1588 nlmsg_trim(skb, b);
1588 return -1; 1589 return -1;
1589} 1590}
1590 1591