net: fou: remove redundant code in gue_udp_recv
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 9 Apr 2019 10:03:07 +0000 (12:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 07:08:51 +0000 (00:08 -0700)
commit526bb57a6ad6b0ed6de34b3c5eabf394b248618f
treececc25880710856f01ac24febf76ebc399a64b8b
parentc9d52f216922425b56b002100b75de34b62b11a0
net: fou: remove redundant code in gue_udp_recv

Remove not useful protocol version check in gue_udp_recv since just
gue version 0 can hit that code. Moreover remove duplicated hdrlen
computation

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fou.c