diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-15 03:30:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:48 -0400 |
commit | 2942e90050569525628a9f34e0daaa9b661b49cc (patch) | |
tree | fc6acc11514e64ff9efc31bdc1bb458232206642 /net/sched/act_api.c | |
parent | f8d8fda54a1bfcf8cf829e44c494b2b4582819aa (diff) |
[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/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index a2587b52e531..6990747d6d5a 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
@@ -459,7 +459,6 @@ static int | |||
459 | act_get_notify(u32 pid, struct nlmsghdr *n, struct tc_action *a, int event) | 459 | act_get_notify(u32 pid, struct nlmsghdr *n, struct tc_action *a, int event) |
460 | { | 460 | { |
461 | struct sk_buff *skb; | 461 | struct sk_buff *skb; |
462 | int err = 0; | ||
463 | 462 | ||
464 | skb = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); | 463 | skb = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); |
465 | if (!skb) | 464 | if (!skb) |
@@ -468,10 +467,8 @@ act_get_notify(u32 pid, struct nlmsghdr *n, struct tc_action *a, int event) | |||
468 | kfree_skb(skb); | 467 | kfree_skb(skb); |
469 | return -EINVAL; | 468 | return -EINVAL; |
470 | } | 469 | } |
471 | err = netlink_unicast(rtnl, skb, pid, MSG_DONTWAIT); | 470 | |
472 | if (err > 0) | 471 | return rtnl_unicast(skb, pid); |
473 | err = 0; | ||
474 | return err; | ||
475 | } | 472 | } |
476 | 473 | ||
477 | static struct tc_action * | 474 | static struct tc_action * |