]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: remove switch block in l2tp_nl_cmd_session_create()
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Wed, 17 Jan 2018 10:41:20 +0000 (11:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 20:10:23 +0000 (15:10 -0500)
commitbc4572526d3af35717cefb53f7b6f3337fd6ba1b
tree5e5ff32d154452a327907dca5c61495fcfb076c6
parent9a88d507f9772c527d30ac9acf51ac3235d26d4d
l2tp: remove switch block in l2tp_nl_cmd_session_create()

Remove the switch block in l2tp_nl_cmd_session_create() that
checks pseudowire-specific parameters since just L2TP_PWTYPE_ETH and
L2TP_PWTYPE_PPP are currently supported and no actual checks are
performed. Moreover the L2TP_PWTYPE_IP/default case presents a harmless
issue in error handling (break instead of goto out_tunnel)

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_netlink.c