mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 01:21:28 +00:00
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: Sergey Shtylyov <s.shtylyov@omp.ru> Link: https://lore.kernel.org/r/f09d7c64-4a2b-6973-09a4-10d759ed0df4@omp.ru Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
7354a426e0
commit
9a90986efc
@ -3456,7 +3456,7 @@ static int sh_eth_suspend(struct device *dev)
|
||||
{
|
||||
struct net_device *ndev = dev_get_drvdata(dev);
|
||||
struct sh_eth_private *mdp = netdev_priv(ndev);
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
if (!netif_running(ndev))
|
||||
return 0;
|
||||
@ -3475,7 +3475,7 @@ static int sh_eth_resume(struct device *dev)
|
||||
{
|
||||
struct net_device *ndev = dev_get_drvdata(dev);
|
||||
struct sh_eth_private *mdp = netdev_priv(ndev);
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
if (!netif_running(ndev))
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user