sit: remove unnecessary protocol check in ipip6_tunnel_xmit()
authorSimon Horman <simon.horman@netronome.com>
Thu, 9 Jun 2016 09:03:34 +0000 (18:03 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 18:23:37 +0000 (11:23 -0700)
commitadba931fbc825efca7c821f0d76baed0a8dc9189
tree185fe365282c126fc93d05f5ed3fc463fc86c9b6
parentb8d99ba06b2163b4e14ba458fe7f47dfb09f61d3
sit: remove unnecessary protocol check in ipip6_tunnel_xmit()

ipip6_tunnel_xmit() is called immediately after checking that
skb->protocol is  htons(ETH_P_IPV6) so there is no need
to check it a second time.

Found by inspection.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Dinan Gunawardena <dinan.gunawardena@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c