diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-09-22 12:56:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-24 15:25:23 -0400 |
commit | 92c14d9b5ee86fd6cf136c01b6a87353522aebdd (patch) | |
tree | 06a095b1c2f948b3a045e12406b0ca8020c20bf5 /net/openvswitch/datapath.c | |
parent | 06e60e5912c0373b15143cc52e4a11fafeaafff3 (diff) |
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>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 6fbd2decb19e..2913594c5123 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
@@ -91,8 +91,7 @@ static bool ovs_must_notify(struct genl_family *family, struct genl_info *info, | |||
91 | static void ovs_notify(struct genl_family *family, | 91 | static void ovs_notify(struct genl_family *family, |
92 | struct sk_buff *skb, struct genl_info *info) | 92 | struct sk_buff *skb, struct genl_info *info) |
93 | { | 93 | { |
94 | genl_notify(family, skb, genl_info_net(info), info->snd_portid, | 94 | genl_notify(family, skb, info, 0, GFP_KERNEL); |
95 | 0, info->nlhdr, GFP_KERNEL); | ||
96 | } | 95 | } |
97 | 96 | ||
98 | /** | 97 | /** |