b43legacy: Fix assigning negative value to unsigned variable
authorHaowen Bai <baihaowen@meizu.com>
Fri, 25 Mar 2022 10:17:13 +0000 (18:17 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 12:13:08 +0000 (15:13 +0300)
commit3f6b867559b3d43a7ce1b4799b755e812fc0d503
treeffc2e3e3b7c1cd7779fb78f9dbadeac391dfbf01
parentbd917b3d28c9815e2c55b9ff16680fdc2ba28d68
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@meizu.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/1648203433-8736-1-git-send-email-baihaowen@meizu.com
drivers/net/wireless/broadcom/b43legacy/phy.c