]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: cleanup bond_create
authorJonathan Toppins <jtoppins@redhat.com>
Wed, 8 Jun 2022 18:14:57 +0000 (14:14 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 06:02:55 +0000 (23:02 -0700)
commit62d795c8a0c3230585cc9a6f2f0145580d85cddc
tree71905acdb0f84f10af9decd98436fe44d58cbe2b
parente99528b431ca2df9517180501e4798e6a34ca0a6
bonding: cleanup bond_create

Setting RLB_NULL_INDEX is not needed as this is done in bond_alb_initialize
which is called by bond_open.

Also reduce the number of rtnl_unlock calls by just using the standard
goto cleanup path.

Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c