geneve, vxlan: Don't check skb_dst() twice
authorStefano Brivio <sbrivio@redhat.com>
Fri, 12 Oct 2018 21:53:58 +0000 (23:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:51:13 +0000 (21:51 -0700)
commit7463e4f9b99c089cc962033b46349ff29f466e40
tree6fbeefca60c20be0d9a94de89e1c14294f7a2f9d
parent0ac1077e3a549bf8d35971613e2be05bdbb41a00
geneve, vxlan: Don't check skb_dst() twice

Commit f15ca723c1eb ("net: don't call update_pmtu unconditionally") avoids
that we try updating PMTU for a non-existent destination, but didn't clean
up cases where the check was already explicit. Drop those redundant checks.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c
drivers/net/vxlan.c