wil6210: fix unsigned cid comparison with >= 0
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 29 Aug 2018 17:50:18 +0000 (12:50 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Sep 2018 15:56:14 +0000 (18:56 +0300)
commit49925f24701600433d0342135e9963818c6b0238
tree090637a3a015d4f881382544e425681599bc8a85
parent713358c321f4f8553afe956c0d5e9a87b43d561e
wil6210: fix unsigned cid comparison with >= 0

The comparison of cid >= 0 is always true because cid is of type u8
(8 bits, unsigned).

Fix this by removing such comparison and updating the type of
variable cid to u8 in the caller function.

Addresses-Coverity-ID: 1473079 ("Unsigned compared against 0")
Fixes: b9010f105f21 ("wil6210: add FT roam support for AP and station")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c