From: Nishka Dasgupta Date: Tue, 19 Mar 2019 19:22:31 +0000 (+0530) Subject: staging: fsl-dpaa2: ethsw: Remove return variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=730b3cf282a30278b72e9f2aa4a60a1b2f643804;p=linux.git staging: fsl-dpaa2: ethsw: Remove return variable Remove return variable and return return value directly. Issue found by Coccinelle using ret.cocci. Signed-off-by: Nishka Dasgupta Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index ad577beeb052c..e3c3e427309ab 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -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)