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:
Родитель
7354a426e0
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче