Message ID | 20220321154456.GA30106@e0e7ddfdfbf7 (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | vxlan: fix returnvar.cocci warnings | expand |
On Mon, 21 Mar 2022 23:44:57 +0800 kernel test robot wrote: > From: kernel test robot <lkp@intel.com> > > drivers/net/vxlan/vxlan_core.c:2962:5-8: Unneeded variable: "ret". Return "0" on line 2971 > > > Remove unneeded variable used to store return value. > > Generated by: scripts/coccinelle/misc/returnvar.cocci > > Fixes: f9c4bb0b245c ("vxlan: vni filtering support on collect metadata device") > CC: Roopa Prabhu <roopa@nvidia.com> > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: kernel test robot <lkp@intel.com> Your tree is stale, this looks exactly like commit e58bc864630f ("drivers: vxlan: fix returnvar.cocci warning") merged on March 8th.
--- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -2959,7 +2959,6 @@ static void vxlan_flush(struct vxlan_dev static int vxlan_stop(struct net_device *dev) { struct vxlan_dev *vxlan = netdev_priv(dev); - int ret = 0; vxlan_multicast_leave(vxlan); @@ -2968,7 +2967,7 @@ static int vxlan_stop(struct net_device vxlan_flush(vxlan, false); vxlan_sock_release(vxlan); - return ret; + return 0; } /* Stub, nothing needs to be done. */