diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-15 09:30:25 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 23:54:48 +0200 |
commit | 2942e90050569525628a9f34e0daaa9b661b49cc (patch) | |
tree | fc6acc11514e64ff9efc31bdc1bb458232206642 /net/ipv4/route.c | |
parent | [IPV6] udp: Fix type in previous change. (diff) | |
download | linux-2942e90050569525628a9f34e0daaa9b661b49cc.tar.xz linux-2942e90050569525628a9f34e0daaa9b661b49cc.zip |
[RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 12128b82c9dc..b8f6cadc5b3a 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2809,10 +2809,9 @@ int inet_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; -out: return err; + err = rtnl_unicast(skb, NETLINK_CB(in_skb).pid); +out: + return err; out_free: kfree_skb(skb); |