]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: rtl8xxxu: Remove always true condition in rtl8xxxu_print_chipinfo
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Fri, 17 Feb 2023 18:49:12 +0000 (20:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:08 +0000 (23:11 +0900)
commit2be8a93c8dc7e8cbc04e4598d10779d630b8a494
treee6c04ad1e56dec01444ca5baf44086f1c21a2e9e
parent2c00e660d48cb95239c563dffbf00d62812db360
wifi: rtl8xxxu: Remove always true condition in rtl8xxxu_print_chipinfo

[ Upstream commit b9b1e4fe2957f361c86e288ecf373dc7895cf7c7 ]

Fix a new smatch warning:
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:1580 rtl8xxxu_print_chipinfo() warn: always true condition '(priv->chip_cut <= 15) => (0-15 <= 15)'

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202302140753.71IgU77A-lkp@intel.com/
Fixes: 7b0ac469e331 ("wifi: rtl8xxxu: Recognise all possible chip cuts")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/68eff98b-a022-5a00-f330-adf623a35772@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c