Skip to content

Commit 5fdf5e5

Browse files
author
Ping-Ke Shih
committed
wifi: rtw89: 8851b: rfk: remove unnecessary assignment of return value of _dpk_dgain_read()
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]
1 parent b6c10a1 commit 5fdf5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ static u8 _dpk_agc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy,
21992199

22002200
if (dgain > 0x5fc || dgain < 0x556) {
22012201
_dpk_one_shot(rtwdev, phy, path, D_SYNC);
2202-
dgain = _dpk_dgain_read(rtwdev);
2202+
_dpk_dgain_read(rtwdev);
22032203
}
22042204

22052205
if (agc_cnt == 0) {

0 commit comments

Comments
 (0)