Commit e58bc864 authored by Guo Zhengkui's avatar Guo Zhengkui Committed by Jakub Kicinski

drivers: vxlan: fix returnvar.cocci warning

Fix the following coccicheck warning:

drivers/net/vxlan/vxlan_core.c:2995:5-8:
Unneeded variable: "ret". Return "0" on line 3004.

Fixes: f9c4bb0b ("vxlan: vni filtering support on collect metadata device")
Signed-off-by: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Acked-by: default avatarRoopa Prabhu <roopa@nvidia.com>
Link: https://lore.kernel.org/r/20220308134321.29862-1-guozhengkui@vivo.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 24055bb8
......@@ -2990,7 +2990,6 @@ static void vxlan_flush(struct vxlan_dev *vxlan, bool do_all)
static int vxlan_stop(struct net_device *dev)
{
struct vxlan_dev *vxlan = netdev_priv(dev);
int ret = 0;
vxlan_multicast_leave(vxlan);
......@@ -2999,7 +2998,7 @@ static int vxlan_stop(struct net_device *dev)
vxlan_flush(vxlan, false);
vxlan_sock_release(vxlan);
return ret;
return 0;
}
/* Stub, nothing needs to be done. */
......
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