rtnetlink: use the new rtnl_get_event() interface
authorVlad Yasevich <vyasevich@gmail.com>
Tue, 30 May 2017 14:07:02 +0000 (10:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 17:08:36 +0000 (13:08 -0400)
Small clean-up to rtmsg_ifinfo() to use the rtnl_get_event()
interface instead of using 'internal' values directly.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c

index 9da53e43750cbe334c3b97fc2d7c6f7f95511a3c..7084f1db2446251db6e2ac89a38bf87e5e1ff11b 100644 (file)
@@ -2896,7 +2896,7 @@ static void rtmsg_ifinfo_event(int type, struct net_device *dev,
 void rtmsg_ifinfo(int type, struct net_device *dev, unsigned int change,
                  gfp_t flags)
 {
-       rtmsg_ifinfo_event(type, dev, change, IFLA_EVENT_NONE, flags);
+       rtmsg_ifinfo_event(type, dev, change, rtnl_get_event(0), flags);
 }
 EXPORT_SYMBOL(rtmsg_ifinfo);