From: nikolay@redhat.com Date: Mon, 2 Sep 2013 11:51:39 +0000 (+0200) Subject: bonding: trivial: remove outdated comment and braces X-Git-Tag: firefly_0821_release~176^2~5420^2~57 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee8487c0e1aed52b534f9bf31d3934af4c50bf33;p=firefly-linux-kernel-4.4.55.git bonding: trivial: remove outdated comment and braces 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 05e638b8ea25..486e04159bc3 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -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;