mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: rtl8723bs: core: remove redundant zero'ing of counter variable k
The zero'ing of counter variable k is redundant as it is never read after breaking out of the while loop. Remove it. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20200223152840.418439-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
49ad571f70
commit
999d544c60
@ -244,10 +244,8 @@ u16 Address)
|
||||
while (!(Bytetemp & 0x80)) {
|
||||
Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3);
|
||||
k++;
|
||||
if (k == 1000) {
|
||||
k = 0;
|
||||
if (k == 1000)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rtw_read8(Adapter, EFUSE_CTRL);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user