1
0
Fork 0

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 <nishka.dasgupta@yahoo.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.2
Nishka Dasgupta 2019-03-20 00:52:31 +05:30 committed by Greg Kroah-Hartman
parent fa008fdf00
commit 730b3cf282
1 changed files with 1 additions and 3 deletions

View 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)