wil6210: wmi: Remove useless code
Subsystems (3)
PATCH 1/1 wil6210: wmi: Remove useless code
Fix the following whitescan warning:
An unsigned value can never be less than 0.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/net/wireless/ath/wil6210/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/wil6210/wmi.c +1 -1
@@ -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
Quoted 6 lines · Jiapeng Chong
Fix the following whitescan warning:
An unsigned value can never be less than 0.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
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