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)
commit2fa3ee93d13ce723d60a4fc4620ed9126c468901
tree71905acdb0f84f10af9decd98436fe44d58cbe2b
parent2bff369b23542ea22d0111aaa8e0b8208bf0dc96
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