Commit 55adb7bf authored by Georgiana Rodica Chelu's avatar Georgiana Rodica Chelu Committed by Greg Kroah-Hartman

staging: ks7010: ks_wlan_net: Remove unnecessary variable used to store return value

Remove unneeded code in order to make clear
that the function returns 0(success) in all cases.

Done using returnvar.cocci script.
Signed-off-by: default avatarGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4e8d968
...@@ -3507,12 +3507,11 @@ int ks_wlan_net_stop(struct net_device *dev) ...@@ -3507,12 +3507,11 @@ int ks_wlan_net_stop(struct net_device *dev)
{ {
struct ks_wlan_private *priv = netdev_priv(dev); struct ks_wlan_private *priv = netdev_priv(dev);
int ret = 0;
priv->device_open_status = 0; priv->device_open_status = 0;
del_timer_sync(&update_phyinfo_timer); del_timer_sync(&update_phyinfo_timer);
if (netif_running(dev)) if (netif_running(dev))
netif_stop_queue(dev); netif_stop_queue(dev);
return ret; return 0;
} }
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