diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-11-15 15:09:53 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-25 15:14:26 +0300 |
commit | 5b1413f00b5beb9f5fed94e43ea0c497d5db9633 (patch) | |
tree | b67687aa1e5d99a657814f00c8e50e77a2ba0bd6 /drivers/net/wireless/ath/ath11k/dp.h | |
parent | ea0c3e2a470271573d480f48a67e74633566a317 (diff) | |
download | linux-5b1413f00b5beb9f5fed94e43ea0c497d5db9633.tar.xz |
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: b4a967b7d0f5 ("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>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/dp.h')
0 files changed, 0 insertions, 0 deletions