wifi: rtw89: 8852c: rfk: remove unnecessary assignment of return value of _dpk_dgain_read()
JIRA: https://issues.redhat.com/browse/RHEL-79791 commit 7bf2f8fe4237ffe260d9cb603500f07ceee36ed8 Author: Ping-Ke Shih <pkshih@realtek.com> Date: Thu Sep 19 16:12:16 2024 +0800 wifi: rtw89: 8852c: 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 <pkshih@realtek.com> Link: https://patch.msgid.link/20240919081216.28505-4-pkshih@realtek.com Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
This commit is contained in:
parent
69334e951c
commit
bced2d1514
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue