From: Vlad Yasevich Date: Tue, 30 May 2017 14:07:02 +0000 (-0400) Subject: rtnetlink: use the new rtnl_get_event() interface X-Git-Tag: microblaze-4.14-rc3~599^2~334 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=8c6c918da16f55fd4a5df53aa072ba3238f12fec;p=linux-2.6-microblaze.git rtnetlink: use the new rtnl_get_event() interface Small clean-up to rtmsg_ifinfo() to use the rtnl_get_event() interface instead of using 'internal' values directly. Signed-off-by: Vladislav Yasevich Acked-by: David Ahern Signed-off-by: David S. Miller --- diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 9da53e43750c..7084f1db2446 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -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);