mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f8d8fda54a
commit
2942e90050
8 changed files with 20 additions and 24 deletions
|
@ -2044,9 +2044,7 @@ int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg)
|
|||
goto out_free;
|
||||
}
|
||||
|
||||
err = netlink_unicast(rtnl, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT);
|
||||
if (err > 0)
|
||||
err = 0;
|
||||
err = rtnl_unicast(skb, NETLINK_CB(in_skb).pid);
|
||||
out:
|
||||
return err;
|
||||
out_free:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue