]> git.baikalelectronics.ru Git - kernel.git/commit
bond: Simplify bond_create.
authorEric W. Biederman <ebiederm@aristanetworks.com>
Thu, 29 Oct 2009 14:18:23 +0000 (14:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 19:41:19 +0000 (12:41 -0700)
commit7dc52e7cf1f2d47cec5ff2e06a1c87963ad8b31c
treed9a9c6cf0df8ae3ab04111977a824c92ab634384
parentea94c64bb7b1c726432ce6657e0d57271d747bbf
bond: Simplify bond_create.

Stop calling dev_get_by_name to see if the bond device already
exists.  register_netdevice already does that.

Stop calling bond_deinit if register_netdevice fails as bond_uninit
is guaranteed to be called if bond_init succeeds.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c