2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 10:10:08 +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:
Max Görner 2024-05-14 09:53:16 +02:00
parent 49bec19134
commit 1bf156aaf1

View File

@ -954,9 +954,9 @@ _lok_one_shot_8822b(void *dm_void, u8 path)
LOK_notready = _iqk_check_cal_8822b(dm, path, 0x0);
_iqk_ltec_write_8822b(dm, 0x38, MASKDWORD, iqk->tmp_gntwl);
if (!LOK_notready)
if (!LOK_notready) {
_iqk_backup_iqk_8822b(dm, 0x1, path);
if (DBG_RF_IQK) {
}
if (!LOK_notready) {
LOK_temp = odm_get_rf_reg(dm, (enum rf_path)path,
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",
path);
}
}
iqk->lok_fail[path] = LOK_notready;
return LOK_notready;
}