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>
Showing
- net/ipv4/fib_frontend.c 1 addition, 1 deletionnet/ipv4/fib_frontend.c
- net/ipv4/inet_diag.c 1 addition, 4 deletionsnet/ipv4/inet_diag.c
- net/ipv4/raw_diag.c 2 additions, 5 deletionsnet/ipv4/raw_diag.c
- net/ipv4/udp_diag.c 2 additions, 4 deletionsnet/ipv4/udp_diag.c
- net/mptcp/mptcp_diag.c 2 additions, 4 deletionsnet/mptcp/mptcp_diag.c
- net/netlink/af_netlink.c 1 addition, 1 deletionnet/netlink/af_netlink.c
- net/sctp/diag.c 2 additions, 4 deletionsnet/sctp/diag.c
- net/unix/diag.c 2 additions, 4 deletionsnet/unix/diag.c
Please register or sign in to comment