]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: consolidate ASSERT_RTNL()s and remove the unnecessary
authorNikolay Aleksandrov <nikolay@redhat.com>
Mon, 15 Sep 2014 15:19:35 +0000 (17:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Sep 2014 21:19:50 +0000 (17:19 -0400)
commitaf07136717cd54f96387be68cdd1773f77d159e9
tree02f1d06b712e53d70a43ccb9f56ac05cffc2af0a
parent5a8f91275852a353b4d68fe7e3f48a4c49a1dea0
bonding: consolidate ASSERT_RTNL()s and remove the unnecessary

Consolidate the calls to ASSERT_RTNL() before bond_select_active_slave()
inside bond_select_active_slave() itself and remove the ASSERT_RTNL()
from bond_hw_addr_swap() as it's not exported and its only caller -
bond_change_active_slave() already has an ASSERT_RTNL().

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c