mirror of https://gitee.com/openkylin/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 <nishka.dasgupta@yahoo.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fa008fdf00
commit
730b3cf282
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue