提交 8c6c918d 编写于 作者: V Vlad Yasevich 提交者: 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: NVladislav Yasevich <vyasevic@redhat.com>
Acked-by: NDavid Ahern <dsahern@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册