Commit 730b3cf2 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman
Browse files

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: default avatarNishka Dasgupta <nishka.dasgupta@yahoo.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fa008fdf
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)