mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
genetlink: simplify genl_notify
The genl_notify function has too many arguments for no real reason - all callers use genl_info to get them anyway. Just pass the genl_info down to genl_notify. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
06e60e5912
commit
92c14d9b5e
4 changed files with 11 additions and 14 deletions
|
@ -91,8 +91,7 @@ static bool ovs_must_notify(struct genl_family *family, struct genl_info *info,
|
|||
static void ovs_notify(struct genl_family *family,
|
||||
struct sk_buff *skb, struct genl_info *info)
|
||||
{
|
||||
genl_notify(family, skb, genl_info_net(info), info->snd_portid,
|
||||
0, info->nlhdr, GFP_KERNEL);
|
||||
genl_notify(family, skb, info, 0, GFP_KERNEL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue