Commit cf2eb6ba authored by Iulia Manda's avatar Iulia Manda Committed by Greg Kroah-Hartman

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: default avatarIulia Manda <iulia.manda21@gmail.com>
Reviewed-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 015851c3
...@@ -615,8 +615,6 @@ static void xlr_config_translate_table(struct xlr_net_priv *priv) ...@@ -615,8 +615,6 @@ static void xlr_config_translate_table(struct xlr_net_priv *priv)
k = (k + 1) % j; k = (k + 1) % j;
b2 = bkts[k]; b2 = bkts[k];
k = (k + 1) % j; 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) | val = ((c1 << 23) | (b1 << 17) | (use_bkt << 16) |
(c2 << 7) | (b2 << 1) | (use_bkt << 0)); (c2 << 7) | (b2 << 1) | (use_bkt << 0));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment