Skip to content

Commit 157550f

Browse files
JoePerchesdavem330
authored andcommitted
bonding: Remove unnecessary else
It's unnecessary and less readable after a clause ending in a goto. Signed-off-by: Joe Perches <[email protected]> Reviewed-by: Ding Tianhong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a7c183 commit 157550f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/net/bonding/bond_alb.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,12 +1455,12 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev)
14551455

14561456
bond_dev_queue_xmit(bond, skb, tx_slave->dev);
14571457
goto out;
1458-
} else {
1459-
if (tx_slave) {
1460-
_lock_tx_hashtbl(bond);
1461-
__tlb_clear_slave(bond, tx_slave, 0);
1462-
_unlock_tx_hashtbl(bond);
1463-
}
1458+
}
1459+
1460+
if (tx_slave) {
1461+
_lock_tx_hashtbl(bond);
1462+
__tlb_clear_slave(bond, tx_slave, 0);
1463+
_unlock_tx_hashtbl(bond);
14641464
}
14651465

14661466
/* no suitable interface, frame not sent */

0 commit comments

Comments
 (0)