]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: 8852c: rfk: remove unnecessary assignment of return value of _dpk_dgain_...
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 19 Sep 2024 08:12:16 +0000 (16:12 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 26 Sep 2024 01:22:14 +0000 (09:22 +0800)
The return value of _dpk_dgain_read() is not used afterward, so remove
it safely.

Addresses-Coverity-ID: 1504753 ("Unused value")

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240919081216.28505-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c

index 211c051c296762bf868aa4ccf9be437a7138fb2e..3281ee9d75236c6f5a47be92eba22eaa580fc39c 100644 (file)
@@ -2350,7 +2350,7 @@ static u8 _dpk_agc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy,
 
                        if (dgain > 0x5fc || dgain < 0x556) {
                                _dpk_one_shot(rtwdev, phy, path, D_SYNC);
-                               dgain = _dpk_dgain_read(rtwdev);
+                               _dpk_dgain_read(rtwdev);
                        }
 
                        if (agc_cnt == 0) {