mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-28 12:57:47 +00:00
fix: Remove useless if-guard
GCC 13 complained about the usage of an enum in a boolean context. On closer investigation it turned out that the value wasn't dynamic and the if-guard always evaluated to true. By removing the guard the compile blocker disappears.
This commit is contained in:
parent
49bec19134
commit
1bf156aaf1
@ -954,9 +954,9 @@ _lok_one_shot_8822b(void *dm_void, u8 path)
|
|||||||
LOK_notready = _iqk_check_cal_8822b(dm, path, 0x0);
|
LOK_notready = _iqk_check_cal_8822b(dm, path, 0x0);
|
||||||
_iqk_ltec_write_8822b(dm, 0x38, MASKDWORD, iqk->tmp_gntwl);
|
_iqk_ltec_write_8822b(dm, 0x38, MASKDWORD, iqk->tmp_gntwl);
|
||||||
|
|
||||||
if (!LOK_notready)
|
if (!LOK_notready) {
|
||||||
_iqk_backup_iqk_8822b(dm, 0x1, path);
|
_iqk_backup_iqk_8822b(dm, 0x1, path);
|
||||||
if (DBG_RF_IQK) {
|
}
|
||||||
if (!LOK_notready) {
|
if (!LOK_notready) {
|
||||||
LOK_temp = odm_get_rf_reg(dm, (enum rf_path)path,
|
LOK_temp = odm_get_rf_reg(dm, (enum rf_path)path,
|
||||||
RF_0x58, MASK20BITS);
|
RF_0x58, MASK20BITS);
|
||||||
@ -965,7 +965,6 @@ _lok_one_shot_8822b(void *dm_void, u8 path)
|
|||||||
RF_DBG(dm, DBG_RF_IQK, "[IQK]==>S%d LOK Fail!!!\n",
|
RF_DBG(dm, DBG_RF_IQK, "[IQK]==>S%d LOK Fail!!!\n",
|
||||||
path);
|
path);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
iqk->lok_fail[path] = LOK_notready;
|
iqk->lok_fail[path] = LOK_notready;
|
||||||
return LOK_notready;
|
return LOK_notready;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user