From: Dan Carpenter Date: Wed, 22 Mar 2017 09:10:02 +0000 (+0300) Subject: sfc: cleanup a condition in efx_udp_tunnel_del() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c04ca616eed02b9abe7afd311382c3ed5eef5c40;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sfc: cleanup a condition in efx_udp_tunnel_del() Presumably if there is an "add" function, there is also a "del" function. But it causes a static checker warning because it looks like a common cut and paste bug. Signed-off-by: Dan Carpenter Acked-by: Jarod Wilson Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 334bcc6df6b2..50d28261b6b9 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -2404,7 +2404,7 @@ static void efx_udp_tunnel_del(struct net_device *dev, struct udp_tunnel_info *t tnl.type = (u16)efx_tunnel_type; tnl.port = ti->port; - if (efx->type->udp_tnl_add_port) + if (efx->type->udp_tnl_del_port) (void)efx->type->udp_tnl_del_port(efx, tnl); }