Skip to content

Commit

Permalink
bonding: trivial: remove outdated comment and braces
Browse files Browse the repository at this point in the history
We don't have to release all slaves when closing the bond dev, so remove
the outdated comment and the braces around the left single statement.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
nikolay@redhat.com authored and David S. Miller committed Sep 4, 2013
1 parent 6c8d23f commit ee8487c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3210,12 +3210,8 @@ static int bond_close(struct net_device *bond_dev)

bond_work_cancel_all(bond);
bond->send_peer_notif = 0;
if (bond_is_lb(bond)) {
/* Must be called only after all
* slaves have been released
*/
if (bond_is_lb(bond))
bond_alb_deinitialize(bond);
}
bond->recv_probe = NULL;

return 0;
Expand Down

0 comments on commit ee8487c

Please sign in to comment.