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:

committed by
David S. Miller

parent
06e60e5912
commit
92c14d9b5e
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user