aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorHong zhi guo <honkiko@gmail.com>2013-03-27 02:47:04 -0400
committerDavid S. Miller <davem@davemloft.net>2013-03-28 14:25:25 -0400
commit573ce260b385a4d14a1ef046558fad9f1daeee42 (patch)
treeb577de870934c583a66514b1206964fbd262c340 /net/ieee802154
parente5c5d22e8dcf7c2d430336cbf8e180bd38e8daf1 (diff)
net-next: replace obsolete NLMSG_* with type safe nlmsg_*
Signed-off-by: Hong Zhiguo <honkiko@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/netlink.c b/net/ieee802154/netlink.c
index 97351e1d07a4..92472528106b 100644
--- a/net/ieee802154/netlink.c
+++ b/net/ieee802154/netlink.c
@@ -65,7 +65,7 @@ struct sk_buff *ieee802154_nl_create(int flags, u8 req)
65int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) 65int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group)
66{ 66{
67 /* XXX: nlh is right at the start of msg */ 67 /* XXX: nlh is right at the start of msg */
68 void *hdr = genlmsg_data(NLMSG_DATA(msg->data)); 68 void *hdr = genlmsg_data(nlmsg_data(msg->data));
69 69
70 if (genlmsg_end(msg, hdr) < 0) 70 if (genlmsg_end(msg, hdr) < 0)
71 goto out; 71 goto out;
@@ -98,7 +98,7 @@ struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
98int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info) 98int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info)
99{ 99{
100 /* XXX: nlh is right at the start of msg */ 100 /* XXX: nlh is right at the start of msg */
101 void *hdr = genlmsg_data(NLMSG_DATA(msg->data)); 101 void *hdr = genlmsg_data(nlmsg_data(msg->data));
102 102
103 if (genlmsg_end(msg, hdr) < 0) 103 if (genlmsg_end(msg, hdr) < 0)
104 goto out; 104 goto out;