CC: [email protected]
CC: [email protected]
TO: Alexander Lobakin <[email protected]>
CC: Vladimir Oltean <[email protected]>
CC: Florian Fainelli <[email protected]>
CC: Woojung Huh <[email protected]>
CC: [email protected]
CC: Andrew Lunn <[email protected]>
CC: Vivien Didelot <[email protected]>
CC: Jakub Kicinski <[email protected]>
CC: [email protected]
CC: [email protected]

From: kernel test robot <[email protected]>

drivers/net/dsa/microchip/ksz_common.c:298:5-8: Unneeded variable: "ret". 
Return "0" on line 320


 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

CC: Alexander Lobakin <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   de5540965853e514a85d3b775e9049deb85a2ff3
commit: 227d72063fccb2d19b30fb4197fba478514f7d83 dsa: simplify Kconfig symbols 
and dependencies
:::::: branch date: 15 hours ago
:::::: commit date: 4 months ago

 ksz_common.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -295,7 +295,6 @@ int ksz_port_mdb_del(struct dsa_switch *
        struct ksz_device *dev = ds->priv;
        struct alu_struct alu;
        int index;
-       int ret = 0;
 
        for (index = 0; index < dev->num_statics; index++) {
                if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) {
@@ -317,7 +316,7 @@ int ksz_port_mdb_del(struct dsa_switch *
        dev->dev_ops->w_sta_mac_table(dev, index, &alu);
 
 exit:
-       return ret;
+       return 0;
 }
 EXPORT_SYMBOL_GPL(ksz_port_mdb_del);
 
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to