]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d568e8a13f0db575008848affdfc91b07484c6d
treececc25880710856f01ac24febf76ebc399a64b8b
parent82bc07e42136b2851a5f940dda1f5b7e809080f9
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