Commit f0822dfc authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

rtlwifi: remove redundant assignment to variable k

The assignment of 0 to variable k is never read once we break out of
the loop, so the assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 5315f9d4
...@@ -117,10 +117,8 @@ u8 efuse_read_1byte(struct ieee80211_hw *hw, u16 address) ...@@ -117,10 +117,8 @@ u8 efuse_read_1byte(struct ieee80211_hw *hw, u16 address)
rtlpriv->cfg-> rtlpriv->cfg->
maps[EFUSE_CTRL] + 3); maps[EFUSE_CTRL] + 3);
k++; k++;
if (k == 1000) { if (k == 1000)
k = 0;
break; break;
}
} }
data = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL]); data = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL]);
return data; return data;
......
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