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)
committerKalle Valo <kvalo@kernel.org>
Wed, 22 Feb 2023 12:31:16 +0000 (14:31 +0200)
commitb9b1e4fe2957f361c86e288ecf373dc7895cf7c7
tree85de1a3c804f379d8fca90fb09a3240a84a79296
parentc6aa9a9c47252ac7b07ed6d10459027e2f2a2de0
wifi: rtl8xxxu: Remove always true condition in rtl8xxxu_print_chipinfo

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
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c