[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1648203433-8736-1-git-send-email-baihaowen@meizu.com>
Date: Fri, 25 Mar 2022 18:17:13 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: <kvalo@...nel.org>, <davem@...emloft.net>, <kuba@...nel.org>,
<pabeni@...hat.com>
CC: <linux-wireless@...r.kernel.org>, <b43-dev@...ts.infradead.org>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Haowen Bai <baihaowen@...zu.com>
Subject: [PATCH V3] b43legacy: Fix assigning negative value to unsigned variable
fix warning reported by smatch:
drivers/net/wireless/broadcom/b43legacy/phy.c:1181 b43legacy_phy_lo_b_measure()
warn: assigning (-772) to unsigned variable 'fval'
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
V1->V2: modify title of this patch
V2->V3: modify prefix of title b43legacy
drivers/net/wireless/broadcom/b43legacy/phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/broadcom/b43legacy/phy.c b/drivers/net/wireless/broadcom/b43legacy/phy.c
index 05404fb..c1395e6 100644
--- a/drivers/net/wireless/broadcom/b43legacy/phy.c
+++ b/drivers/net/wireless/broadcom/b43legacy/phy.c
@@ -1123,7 +1123,7 @@ void b43legacy_phy_lo_b_measure(struct b43legacy_wldev *dev)
struct b43legacy_phy *phy = &dev->phy;
u16 regstack[12] = { 0 };
u16 mls;
- u16 fval;
+ s16 fval;
int i;
int j;
--
2.7.4
Powered by blists - more mailing lists