diff options
author | Hong zhi guo <honkiko@gmail.com> | 2013-03-29 01:09:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-29 14:44:37 -0400 |
commit | 10c9cbb10fa035d20c8ff2e231780617c6c70ee7 (patch) | |
tree | 40152f8bd32f02c8483248f2a463dc085b8d83ee /net | |
parent | 2851da57036f4242df344eb60735670211ee7562 (diff) |
netlink: fix the warning introduced by netlink API replacement
Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee802154/netlink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ieee802154/netlink.c b/net/ieee802154/netlink.c index 92472528106b..7e49bbcc6967 100644 --- a/net/ieee802154/netlink.c +++ b/net/ieee802154/netlink.c | |||
@@ -64,8 +64,8 @@ struct sk_buff *ieee802154_nl_create(int flags, u8 req) | |||
64 | 64 | ||
65 | int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) | 65 | int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) |
66 | { | 66 | { |
67 | /* XXX: nlh is right at the start of msg */ | 67 | struct nlmsghdr *nlh = nlmsg_hdr(msg); |
68 | void *hdr = genlmsg_data(nlmsg_data(msg->data)); | 68 | void *hdr = genlmsg_data(nlmsg_data(nlh)); |
69 | 69 | ||
70 | if (genlmsg_end(msg, hdr) < 0) | 70 | if (genlmsg_end(msg, hdr) < 0) |
71 | goto out; | 71 | goto out; |
@@ -97,8 +97,8 @@ struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info, | |||
97 | 97 | ||
98 | int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info) | 98 | int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info) |
99 | { | 99 | { |
100 | /* XXX: nlh is right at the start of msg */ | 100 | struct nlmsghdr *nlh = nlmsg_hdr(msg); |
101 | void *hdr = genlmsg_data(nlmsg_data(msg->data)); | 101 | void *hdr = genlmsg_data(nlmsg_data(nlh)); |
102 | 102 | ||
103 | if (genlmsg_end(msg, hdr) < 0) | 103 | if (genlmsg_end(msg, hdr) < 0) |
104 | goto out; | 104 | goto out; |