]> 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)
commit95b82b8dd172775c9074ec2793172412553b8386
tree0b31ad3ca2f4175b3c113a74c645a9cf28881548
parent8559a442d4f470a10d925e501e1050e9337b2931
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