Commit 8c6c918d authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller

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: default avatarVladislav Yasevich <vyasevic@redhat.com>
Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7bc57950
...@@ -2896,7 +2896,7 @@ static void rtmsg_ifinfo_event(int type, struct net_device *dev, ...@@ -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, void rtmsg_ifinfo(int type, struct net_device *dev, unsigned int change,
gfp_t flags) 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); EXPORT_SYMBOL(rtmsg_ifinfo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment