]> git.baikalelectronics.ru Git - kernel.git/commit
net: Use nlmsg_unicast() instead of netlink_unicast()
authorYajun Deng <yajun.deng@linux.dev>
Tue, 13 Jul 2021 02:48:24 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jul 2021 16:28:29 +0000 (09:28 -0700)
commit42f5e21083e8b3cdfbd989e7004f9165b2170f0b
tree0b31ad3ca2f4175b3c113a74c645a9cf28881548
parentadd56e3dc762fcd414209fac559464aac790aa6e
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>
net/ipv4/fib_frontend.c
net/ipv4/inet_diag.c
net/ipv4/raw_diag.c
net/ipv4/udp_diag.c
net/mptcp/mptcp_diag.c
net/netlink/af_netlink.c
net/sctp/diag.c
net/unix/diag.c