Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wil6210: wmi: Remove useless code

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

authored by

Jiapeng Chong and committed by
Kalle Valo
5e608755 cf366b15

+1 -1
+1 -1
drivers/net/wireless/ath/wil6210/wmi.c
··· 1456 1456 u8 cid = basic->cid; 1457 1457 struct wil_sta_info *sta; 1458 1458 1459 - if (cid < 0 || cid >= wil->max_assoc_sta) { 1459 + if (cid >= wil->max_assoc_sta) { 1460 1460 wil_err(wil, "invalid cid %d\n", cid); 1461 1461 return; 1462 1462 }