bonding: use the correct function to check for netdev name collision
authorAntoine Tenart <atenart@kernel.org>
Thu, 7 Oct 2021 16:16:51 +0000 (18:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 16:02:34 +0000 (17:02 +0100)
commitcaa9b35fadff57e6ee7499f2fb26f8abd83a133b
treea9a8c82c4e2c3a9b70ab70e93bc78e5ec5985b31
parent75ea27d0d62281c31ee259c872dfdeb072cf5e39
bonding: use the correct function to check for netdev name collision

A new helper to detect if a net device name is in use was added. Use it
here as the return reference from __dev_get_by_name was discarded.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c