Commit 10c9cbb1 authored by Hong zhi guo's avatar Hong zhi guo Committed by David S. Miller

netlink: fix the warning introduced by netlink API replacement

Signed-off-by: default avatarHong Zhiguo <honkiko@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2851da57
...@@ -64,8 +64,8 @@ struct sk_buff *ieee802154_nl_create(int flags, u8 req) ...@@ -64,8 +64,8 @@ struct sk_buff *ieee802154_nl_create(int flags, u8 req)
int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group)
{ {
/* XXX: nlh is right at the start of msg */ struct nlmsghdr *nlh = nlmsg_hdr(msg);
void *hdr = genlmsg_data(nlmsg_data(msg->data)); void *hdr = genlmsg_data(nlmsg_data(nlh));
if (genlmsg_end(msg, hdr) < 0) if (genlmsg_end(msg, hdr) < 0)
goto out; goto out;
...@@ -97,8 +97,8 @@ struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info, ...@@ -97,8 +97,8 @@ struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info) int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info)
{ {
/* XXX: nlh is right at the start of msg */ struct nlmsghdr *nlh = nlmsg_hdr(msg);
void *hdr = genlmsg_data(nlmsg_data(msg->data)); void *hdr = genlmsg_data(nlmsg_data(nlh));
if (genlmsg_end(msg, hdr) < 0) if (genlmsg_end(msg, hdr) < 0)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment