net: Use nlmsg_unicast() instead of netlink_unicast()
It has 'if (err >0 )' statement in nlmsg_unicast(), so use nlmsg_unicast() instead of netlink_unicast(), this looks more concise. v2: remove the change in netfilter. Signed-off-by: Yajun Deng <yajun.deng@linux.dev> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
71ce9d92fc
commit
01757f536a
@@ -1376,7 +1376,7 @@ static void nl_fib_input(struct sk_buff *skb)
|
||||
portid = NETLINK_CB(skb).portid; /* netlink portid */
|
||||
NETLINK_CB(skb).portid = 0; /* from kernel */
|
||||
NETLINK_CB(skb).dst_group = 0; /* unicast */
|
||||
netlink_unicast(net->ipv4.fibnl, skb, portid, MSG_DONTWAIT);
|
||||
nlmsg_unicast(net->ipv4.fibnl, skb, portid);
|
||||
}
|
||||
|
||||
static int __net_init nl_fib_lookup_init(struct net *net)
|
||||
|
Reference in New Issue
Block a user