]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: fix break that is never reached because of zero'ing of a retry counter
authorColin Ian King <colin.king@canonical.com>
Fri, 15 Nov 2019 12:09:53 +0000 (12:09 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Nov 2019 12:14:26 +0000 (14:14 +0200)
commit5c23b66edf91ac2cc2efddbc874c4c742cee3749
treeb67687aa1e5d99a657814f00c8e50e77a2ba0bd6
parent61d305d37bdd80267ba3a34a675bd79405092b32
wil6210: fix break that is never reached because of zero'ing of a retry counter

There is a check on the retry counter invalid_buf_id_retry that is always
false because invalid_buf_id_retry is initialized to zero on each iteration
of a while-loop.  Fix this by initializing the retry counter before the
while-loop starts.

Addresses-Coverity: ("Logically dead code")
Fixes: e4726a89bc6d ("wil6210: reset buff id in status message after completion")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/txrx_edma.c