wil6210: wmi: Remove useless code
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 7 Apr 2021 09:46:06 +0000 (17:46 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 18 Apr 2021 06:36:16 +0000 (09:36 +0300)
Fix the following whitescan warning:

An unsigned value can never be less than 0.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1617788766-91433-1-git-send-email-jiapeng.chong@linux.alibaba.com
drivers/net/wireless/ath/wil6210/wmi.c

index 823ec6e..02ad449 100644 (file)
@@ -1456,7 +1456,7 @@ static void wil_link_stats_store_basic(struct wil6210_vif *vif,
        u8 cid = basic->cid;
        struct wil_sta_info *sta;
 
-       if (cid < 0 || cid >= wil->max_assoc_sta) {
+       if (cid >= wil->max_assoc_sta) {
                wil_err(wil, "invalid cid %d\n", cid);
                return;
        }