]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sh_eth: kill useless initializers in sh_eth_{suspend|resume}()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 29 Jan 2022 18:45:45 +0000 (21:45 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Feb 2022 05:37:24 +0000 (21:37 -0800)
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>
drivers/net/ethernet/renesas/sh_eth.c

index 9ff6089905d6813165fbe9530a43c5227f6c4efb..67ade78fb7671c4a8bbaae0e02b067bd351a3beb 100644 (file)
@@ -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;