]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: remove useless device duplication test in l2tp_eth_create()
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 26 Apr 2017 09:54:47 +0000 (11:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Apr 2017 20:32:13 +0000 (16:32 -0400)
commitddec29136a8553e1f8336d2c7efc1ac33ed3a558
tree770a7770095e9c198a3a643df197b41bbdb45e7c
parent24cf98468acb5de20366c94a1bedbfe0dbd8f010
l2tp: remove useless device duplication test in l2tp_eth_create()

There's no need to verify that cfg->ifname is unique at this point.
register_netdev() will return -EEXIST if asked to create a device with
a name that's alrealy in use.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_eth.c