]> Git Repo - linux.git/commitdiff
wifi: rtw89: 8851b: rfk: remove unnecessary assignment of return value of _dpk_dgain_...
authorPing-Ke Shih <[email protected]>
Mon, 9 Dec 2024 04:20:20 +0000 (12:20 +0800)
committerPing-Ke Shih <[email protected]>
Thu, 12 Dec 2024 03:06:29 +0000 (11:06 +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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c

index 364e3635422569d6acf58302e92d322408fab3df..f72b3ac6f1492f754358e3c4d18cc361a5aa49b0 100644 (file)
@@ -2199,7 +2199,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) {
This page took 0.137826 seconds and 4 git commands to generate.