From 730b3cf282a30278b72e9f2aa4a60a1b2f643804 Mon Sep 17 00:00:00 2001 From: Nishka Dasgupta Date: Wed, 20 Mar 2019 00:52:31 +0530 Subject: [PATCH] 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 --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index ad577beeb052..e3c3e427309a 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)