mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									2851da5703
								
							
						
					
					
						commit
						10c9cbb10f
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -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,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue