]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw88: Refactor looping in rtw_phy_store_tx_power_by_rate
authorMohammed Anees <pvmohammedanees2003@gmail.com>
Thu, 17 Oct 2024 08:06:38 +0000 (13:36 +0530)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 25 Oct 2024 02:12:21 +0000 (10:12 +0800)
commit7846f0b63562f4db45f712cc7dab091985baf07b
tree11a7eaa06f96fab37f6ce6acf4e5f1392abcd833
parent39fc7d38654d33e9832b4a6042fc9f5cb1fe3e80
wifi: rtw88: Refactor looping in rtw_phy_store_tx_power_by_rate

The previous implementation included an unnecessary else
condition paired with a continue statement. Since a check
is already performed to determine if the band is either
2G or 5G, the else condition will never be triggered.
We can remove this check.

Signed-off-by: Mohammed Anees <pvmohammedanees2003@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241017080638.13074-1-pvmohammedanees2003@gmail.com
drivers/net/wireless/realtek/rtw88/phy.c