Commit 9a90986e authored by Sergey Shtylyov's avatar Sergey Shtylyov Committed by Jakub Kicinski

sh_eth: kill useless initializers in sh_eth_{suspend|resume}()

sh_eth_{suspend|resume}() initialize their local variable 'ret' to 0 but
this value is never really used, thus we can kill those intializers...
Signed-off-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/f09d7c64-4a2b-6973-09a4-10d759ed0df4@omp.ruSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7354a426
...@@ -3456,7 +3456,7 @@ static int sh_eth_suspend(struct device *dev) ...@@ -3456,7 +3456,7 @@ static int sh_eth_suspend(struct device *dev)
{ {
struct net_device *ndev = dev_get_drvdata(dev); struct net_device *ndev = dev_get_drvdata(dev);
struct sh_eth_private *mdp = netdev_priv(ndev); struct sh_eth_private *mdp = netdev_priv(ndev);
int ret = 0; int ret;
if (!netif_running(ndev)) if (!netif_running(ndev))
return 0; return 0;
...@@ -3475,7 +3475,7 @@ static int sh_eth_resume(struct device *dev) ...@@ -3475,7 +3475,7 @@ static int sh_eth_resume(struct device *dev)
{ {
struct net_device *ndev = dev_get_drvdata(dev); struct net_device *ndev = dev_get_drvdata(dev);
struct sh_eth_private *mdp = netdev_priv(ndev); struct sh_eth_private *mdp = netdev_priv(ndev);
int ret = 0; int ret;
if (!netif_running(ndev)) if (!netif_running(ndev))
return 0; 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