mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
wifi: rtw89: fix rtw89_read_chip_ver() for RTL8852B and RTL8851B
[ Upstream commit9d4f491b86] The if statement is reversed so it will not record the chip version. This was detected using Smatch: drivers/net/wireless/realtek/rtw89/core.c:3593 rtw89_read_chip_ver() error: uninitialized symbol 'val'. Fixes:a6fb2bb846("wifi: rtw89: read version of analog hardware") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/e4d912a2-37f8-4068-8861-7b9494ae731b@kili.mountain Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
660663763c
commit
bce2dfae26
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue