Staging:netlogic: Correct double assignment in xlr_net.c
authorIulia Manda <iulia.manda21@gmail.com>
Sat, 8 Mar 2014 14:44:10 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 04:31:53 +0000 (20:31 -0800)
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 <iulia.manda21@gmail.com>
Reviewed-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/netlogic/xlr_net.c

index fd6050e73f853ee5a433e24458b3beb0d56c07af..c83e3375104b5066db2a4991726fbb8a3aa45fde 100644 (file)
@@ -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));