diff options
author | tanxiaojun <tanxiaojun@huawei.com> | 2013-12-19 00:28:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-19 19:27:25 -0500 |
commit | 87e823b3d5c99a17b4a5cfd6a70cd002992e30dd (patch) | |
tree | c262063bf8044fc538b27b7b51c9b9193a1302b3 /net/bridge | |
parent | 5495ab75097558e650109c701f82325af5c4ee4f (diff) |
bridge: remove unnecessary condition judgment
Because err is always negative, remove unnecessary condition
judgment.
Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_fdb.c | 3 | ||||
-rw-r--r-- | net/bridge/br_netlink.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index 33e8f23acddd..c5f5a4a933f4 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c | |||
@@ -570,8 +570,7 @@ static void fdb_notify(struct net_bridge *br, | |||
570 | rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC); | 570 | rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC); |
571 | return; | 571 | return; |
572 | errout: | 572 | errout: |
573 | if (err < 0) | 573 | rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); |
574 | rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); | ||
575 | } | 574 | } |
576 | 575 | ||
577 | /* Dump information about entries, in response to GETNEIGH */ | 576 | /* Dump information about entries, in response to GETNEIGH */ |
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index c2fd6bc5f080..6526ac89bbfa 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c | |||
@@ -195,8 +195,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port) | |||
195 | rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC); | 195 | rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC); |
196 | return; | 196 | return; |
197 | errout: | 197 | errout: |
198 | if (err < 0) | 198 | rtnl_set_sk_err(net, RTNLGRP_LINK, err); |
199 | rtnl_set_sk_err(net, RTNLGRP_LINK, err); | ||
200 | } | 199 | } |
201 | 200 | ||
202 | 201 | ||