diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-24 07:34:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 02:11:20 +0300 |
commit | 24beeab539c6f42c4a93e2ff7c3b5f272e60da45 (patch) | |
tree | eb1be7e7d8b3f0f3375bf0d12fd26851e518d9ca /net/sched/em_meta.c | |
parent | 57e1c487a4f5754cb77abeb00adb21faa88c484f (diff) | |
download | linux-24beeab539c6f42c4a93e2ff7c3b5f272e60da45.tar.xz |
[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) if (v->len == sizeof(unsigned long)) NLA_PUT(skb, tlv, sizeof(unsigned long), &v->val); else if (v->len == sizeof(u32)) { - u32 d = v->val; - NLA_PUT(skb, tlv, sizeof(d), &d); + NLA_PUT_U32(skb, tlv, v->val); } return 0; |