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 <vyasevic@redhat.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vlad Yasevich 2017-05-30 10:07:02 -04:00 committed by David S. Miller
parent 7bc57950bd
commit 8c6c918da1

View 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);