From cf2eb6baaf426337ee2f539f4349d193b16e4ab6 Mon Sep 17 00:00:00 2001 From: Iulia Manda Date: Sat, 8 Mar 2014 16:44:10 +0200 Subject: [PATCH] Staging:netlogic: Correct double assignment in xlr_net.c This patch removes an unnecessary assignment of variable val. I have used a coccinelle semantic patch(da.cocci) in order to find this issue. Signed-off-by: Iulia Manda Reviewed-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- drivers/staging/netlogic/xlr_net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index fd6050e73f85..c83e3375104b 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -615,8 +615,6 @@ static void xlr_config_translate_table(struct xlr_net_priv *priv) k = (k + 1) % j; b2 = bkts[k]; k = (k + 1) % j; - val = ((c1 << 23) | (b1 << 17) | (use_bkt << 16) | - (c2 << 7) | (b2 << 1) | (use_bkt << 0)); val = ((c1 << 23) | (b1 << 17) | (use_bkt << 16) | (c2 << 7) | (b2 << 1) | (use_bkt << 0)); -- 2.34.1