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:
Colin Ian King 2020-02-23 15:28:40 +00:00 committed by Greg Kroah-Hartman
parent 49ad571f70
commit 999d544c60

View File

@ -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