Re: [net-next v2] bonding: use return instead of goto

2016-02-11 Thread David Miller
From: Zhang Shengju Date: Tue, 9 Feb 2016 10:37:46 + > Replace 'goto' with 'return' to remove unnecessary check at label: > err_undo_flags. > > The reason is that 'err_undo_flags' do two things for the first slave device: > 1.revert bond mac address if it

[net-next v2] bonding: use return instead of goto

2016-02-09 Thread Zhang Shengju
Replace 'goto' with 'return' to remove unnecessary check at label: err_undo_flags. The reason is that 'err_undo_flags' do two things for the first slave device: 1.revert bond mac address if it is set by the slave device. 2.revert bond device type if it's not ARPHRD_ETHER. It's not necessary for