Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
999d544c 49ad571f

+1 -3
+1 -3
drivers/staging/rtl8723bs/core/rtw_efuse.c
··· 244 244 while (!(Bytetemp & 0x80)) { 245 245 Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3); 246 246 k++; 247 - if (k == 1000) { 248 - k = 0; 247 + if (k == 1000) 249 248 break; 250 - } 251 249 } 252 250 return rtw_read8(Adapter, EFUSE_CTRL); 253 251 } else