b43: Fix assigning negative value to unsigned variable
authorHaowen Bai <baihaowen@meizu.com>
Fri, 25 Mar 2022 10:15:15 +0000 (18:15 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 12:14:23 +0000 (15:14 +0300)
commit11800d893b38e0e12d636c170c1abc19c43c730c
tree38f8a25d406874ef21306fb880677df8cc0e4716
parent3f6b867559b3d43a7ce1b4799b755e812fc0d503
b43: Fix assigning negative value to unsigned variable

fix warning reported by smatch:
drivers/net/wireless/broadcom/b43/phy_n.c:585 b43_nphy_adjust_lna_gain_table()
warn: assigning (-2) to unsigned variable '*(lna_gain[0])'

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/1648203315-28093-1-git-send-email-baihaowen@meizu.com
drivers/net/wireless/broadcom/b43/phy_n.c