summaryrefslogtreecommitdiffstats
path: root/include/linux/igmp.h
diff options
context:
space:
mode:
authorZhang Shengju2016-02-09 11:37:46 +0100
committerDavid S. Miller2016-02-11 15:57:00 +0100
commit1e2a8868e0541b7d8870781b714d74ac7cad9a6a (patch)
tree4bf88800643ec885813d06a6d15fc5c66c3ce80f /include/linux/igmp.h
parentnet: macb: add wake-on-lan support via magic packet (diff)
downloadkernel-qcow2-linux-1e2a8868e0541b7d8870781b714d74ac7cad9a6a.tar.gz
kernel-qcow2-linux-1e2a8868e0541b7d8870781b714d74ac7cad9a6a.tar.xz
kernel-qcow2-linux-1e2a8868e0541b7d8870781b714d74ac7cad9a6a.zip
bonding: use return instead of goto
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 the following three places, they changed neither bond mac address nor type. It's straightforward to return directly. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/igmp.h')
0 files changed, 0 insertions, 0 deletions