staging: fsl-dpaa2: ethsw: Remove return variable
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 19 Mar 2019 19:22:31 +0000 (00:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2019 06:54:05 +0000 (07:54 +0100)
Remove return variable and return return value directly. Issue found by
Coccinelle using ret.cocci.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c

index ad577be..e3c3e42 100644 (file)
@@ -1350,9 +1350,7 @@ static int ethsw_port_init(struct ethsw_port_priv *port_priv, u16 port)
                return err;
        }
 
-       err = ethsw_port_fdb_add_mc(port_priv, def_mcast);
-
-       return err;
+       return ethsw_port_fdb_add_mc(port_priv, def_mcast);
 }
 
 static void ethsw_unregister_notifier(struct device *dev)