diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-23 23:34:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:20 -0500 |
commit | 24beeab539c6f42c4a93e2ff7c3b5f272e60da45 (patch) | |
tree | eb1be7e7d8b3f0f3375bf0d12fd26851e518d9ca /net/sched/em_meta.c | |
parent | 57e1c487a4f5754cb77abeb00adb21faa88c484f (diff) |
[NET_SCHED]: Use typeful attribute construction helpers
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/em_meta.c')
-rw-r--r-- | net/sched/em_meta.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index dd5723670d31..63ae6a230c4f 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c | |||
@@ -623,8 +623,7 @@ static int meta_int_dump(struct sk_buff *skb, struct meta_value *v, int tlv) | |||
623 | if (v->len == sizeof(unsigned long)) | 623 | if (v->len == sizeof(unsigned long)) |
624 | NLA_PUT(skb, tlv, sizeof(unsigned long), &v->val); | 624 | NLA_PUT(skb, tlv, sizeof(unsigned long), &v->val); |
625 | else if (v->len == sizeof(u32)) { | 625 | else if (v->len == sizeof(u32)) { |
626 | u32 d = v->val; | 626 | NLA_PUT_U32(skb, tlv, v->val); |
627 | NLA_PUT(skb, tlv, sizeof(d), &d); | ||
628 | } | 627 | } |
629 | 628 | ||
630 | return 0; | 629 | return 0; |