bareudp: remove unnecessary udp_encap_enable() in bareudp_socket_create()
authorTaehee Yoo <ap420073@gmail.com>
Sun, 8 Mar 2020 01:19:30 +0000 (01:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2020 04:22:29 +0000 (21:22 -0700)
commit2baecda37f4ef4414be15452a333fe4fd13c0df3
tree54bb67e486613dbd525297cfb46b0c8912ca394b
parentc46a49a45c865350d6051df555034b86a2ac72ff
bareudp: remove unnecessary udp_encap_enable() in bareudp_socket_create()

In the current code, udp_encap_enable() is called in
bareudp_socket_create().
But, setup_udp_tunnel_sock() internally calls udp_encap_enable().
So, udp_encap_enable() is unnecessary.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bareudp.c