Skip to contentSkip to conversation

wil6210: wmi: Remove useless code

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 7, 2021 – Apr 18, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wil6210: wmi: Remove useless code

Fix the following whitescan warning:

An unsigned value can never be less than 0.

---
 drivers/net/wireless/ath/wil6210/wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/wil6210/wmi.c +1 -1
index 823ec6e..02ad449 100644
@@ -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;
 	}
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 6 lines · Jiapeng Chong

Fix the following whitescan warning:

An unsigned value can never be less than 0.

Patch applied to wireless-drivers-next.git, thanks.

5e6087559e85 wil6210: wmi: Remove useless code

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/1617788766-91433-1-git-send-email-jiapeng.chong@linux.alibaba.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches