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: b9010f105f
("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>
Tento commit je obsažen v:

odevzdal
Kalle Valo

rodič
713358c321
revize
49925f2470
@@ -1177,7 +1177,7 @@ static void wmi_evt_ring_en(struct wil6210_vif *vif, int id, void *d, int len)
|
||||
u8 vri = evt->ring_index;
|
||||
struct wireless_dev *wdev = vif_to_wdev(vif);
|
||||
struct wil_sta_info *sta;
|
||||
int cid;
|
||||
u8 cid;
|
||||
struct key_params params;
|
||||
|
||||
wil_dbg_wmi(wil, "Enable vring %d MID %d\n", vri, vif->mid);
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele