diff options
author | Joe Perches <joe@perches.com> | 2014-02-18 12:42:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 15:37:51 -0500 |
commit | 157550fbbbf932970b231394b1069f50104824c5 (patch) | |
tree | 1a50e17fa375160f673d8952ed25daba6580204d /drivers/net/bonding/bond_alb.c | |
parent | 2a7c183bc7ae798915c4bc58d3bf413fe466705b (diff) |
bonding: Remove unnecessary else
It's unnecessary and less readable after a clause ending in a goto.
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 97a43a20dae8..aaeeacf767f2 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -1455,12 +1455,12 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev) | |||
1455 | 1455 | ||
1456 | bond_dev_queue_xmit(bond, skb, tx_slave->dev); | 1456 | bond_dev_queue_xmit(bond, skb, tx_slave->dev); |
1457 | goto out; | 1457 | goto out; |
1458 | } else { | 1458 | } |
1459 | if (tx_slave) { | 1459 | |
1460 | _lock_tx_hashtbl(bond); | 1460 | if (tx_slave) { |
1461 | __tlb_clear_slave(bond, tx_slave, 0); | 1461 | _lock_tx_hashtbl(bond); |
1462 | _unlock_tx_hashtbl(bond); | 1462 | __tlb_clear_slave(bond, tx_slave, 0); |
1463 | } | 1463 | _unlock_tx_hashtbl(bond); |
1464 | } | 1464 | } |
1465 | 1465 | ||
1466 | /* no suitable interface, frame not sent */ | 1466 | /* no suitable interface, frame not sent */ |