projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7c183
)
bonding: Remove unnecessary else
author
Joe Perches
<
[email protected]
>
Tue, 18 Feb 2014 17:42:46 +0000
(09:42 -0800)
committer
David S. Miller
<
[email protected]
>
Wed, 19 Feb 2014 20:37:51 +0000
(15:37 -0500)
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]
>
drivers/net/bonding/bond_alb.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bond_alb.c
b/drivers/net/bonding/bond_alb.c
index 97a43a20dae8771c13482894d76767629cfc9fba..aaeeacf767f24e128ff75a5c54fb25ef4bcb8a58 100644
(file)
--- 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)
bond_dev_queue_xmit(bond, skb, tx_slave->dev);
goto out;
- }
else {
- if (tx_slave) {
- _lock_tx_hashtbl(bond);
-
__tlb_clear_slave(bond, tx_slave, 0
);
-
_unlock_tx_hashtbl(bond
);
- }
+ }
+
+ if (tx_slave) {
+
_lock_tx_hashtbl(bond
);
+
__tlb_clear_slave(bond, tx_slave, 0
);
+ _unlock_tx_hashtbl(bond);
}
/* no suitable interface, frame not sent */