ppp: use the correct function to check if a netdev name is in use
authorAntoine Tenart <atenart@kernel.org>
Thu, 7 Oct 2021 16:16:52 +0000 (18:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 16:02:35 +0000 (17:02 +0100)
commitd03eb9787d3aa74da0379cd34345686227580000
treee8a44f6bed263bb610e6c566a9b7104057e19fac
parentcaa9b35fadff57e6ee7499f2fb26f8abd83a133b
ppp: use the correct function to check if a netdev name is in use

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/ppp/ppp_generic.c