]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtlwifi: rtl8821ae: Remove dead code in rtl8821ae_update_hal_rate_table()
authorChelsy Ratnawat <chelsyratnawat2001@gmail.com>
Tue, 7 Apr 2026 12:34:27 +0000 (05:34 -0700)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 29 Apr 2026 02:53:50 +0000 (10:53 +0800)
commitd603f2cfa623e9446b44d0c9bcc2cdd92cbda594
tree3db8461749a7b10bcecfb60e69ba5ae62028056c
parent7068c379cf9aa8afe4dce4d9d82390187aa9c4d0
wifi: rtlwifi: rtl8821ae: Remove dead code in rtl8821ae_update_hal_rate_table()

The variable 'mimo_ps' is initialized to IEEE80211_SMPS_OFF and never
modified throughout the function. This makes the condition checking for
IEEE80211_SMPS_STATIC always evaluate to false, rendering the entire
if-branch unreachable dead code.

The error was reported by Coverity Scan.

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260407123427.14612-1-chelsyratnawat2001@gmail.com
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c