Commit c04ca616 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e9e6cc8
...@@ -2404,7 +2404,7 @@ static void efx_udp_tunnel_del(struct net_device *dev, struct udp_tunnel_info *t ...@@ -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.type = (u16)efx_tunnel_type;
tnl.port = ti->port; 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); (void)efx->type->udp_tnl_del_port(efx, tnl);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment