wifi: iwlwifi: don't use TRUE/FALSE with bool
With C99 bool we really also should use true/false, not the upper-case variants, wherever they may actually be coming from. Fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240208185302.5732dd306ee9.Ifc07c026ac3779429e3dc949e96c9437e89f7bf9@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -1245,7 +1245,7 @@ iwl_dbg_tlv_tp_trigger(struct iwl_fw_runtime *fwrt, bool sync,
|
||||
}
|
||||
}
|
||||
|
||||
fwrt->trans->dbg.restart_required = FALSE;
|
||||
fwrt->trans->dbg.restart_required = false;
|
||||
IWL_DEBUG_FW(fwrt, "WRT: tp %d, reset_fw %d\n",
|
||||
tp, dump_data.trig->reset_fw);
|
||||
IWL_DEBUG_FW(fwrt,
|
||||
@@ -1255,22 +1255,22 @@ iwl_dbg_tlv_tp_trigger(struct iwl_fw_runtime *fwrt, bool sync,
|
||||
|
||||
if (fwrt->trans->trans_cfg->device_family ==
|
||||
IWL_DEVICE_FAMILY_9000) {
|
||||
fwrt->trans->dbg.restart_required = TRUE;
|
||||
fwrt->trans->dbg.restart_required = true;
|
||||
} else if (tp == IWL_FW_INI_TIME_POINT_FW_ASSERT &&
|
||||
fwrt->trans->dbg.last_tp_resetfw ==
|
||||
IWL_FW_INI_RESET_FW_MODE_STOP_FW_ONLY) {
|
||||
fwrt->trans->dbg.restart_required = FALSE;
|
||||
fwrt->trans->dbg.restart_required = false;
|
||||
fwrt->trans->dbg.last_tp_resetfw = 0xFF;
|
||||
IWL_DEBUG_FW(fwrt, "WRT: FW_ASSERT due to reset_fw_mode-no restart\n");
|
||||
} else if (le32_to_cpu(dump_data.trig->reset_fw) ==
|
||||
IWL_FW_INI_RESET_FW_MODE_STOP_AND_RELOAD_FW) {
|
||||
IWL_DEBUG_FW(fwrt, "WRT: stop and reload firmware\n");
|
||||
fwrt->trans->dbg.restart_required = TRUE;
|
||||
fwrt->trans->dbg.restart_required = true;
|
||||
} else if (le32_to_cpu(dump_data.trig->reset_fw) ==
|
||||
IWL_FW_INI_RESET_FW_MODE_STOP_FW_ONLY) {
|
||||
IWL_DEBUG_FW(fwrt,
|
||||
"WRT: stop only and no reload firmware\n");
|
||||
fwrt->trans->dbg.restart_required = FALSE;
|
||||
fwrt->trans->dbg.restart_required = false;
|
||||
fwrt->trans->dbg.last_tp_resetfw =
|
||||
le32_to_cpu(dump_data.trig->reset_fw);
|
||||
} else if (le32_to_cpu(dump_data.trig->reset_fw) ==
|
||||
|
||||
@@ -2997,7 +2997,7 @@ static void iwl_mvm_nd_match_info_handler(struct iwl_mvm *mvm,
|
||||
|
||||
if (results->matched_profiles) {
|
||||
memcpy(results->matches, notif->matches, matches_len);
|
||||
d3_data->nd_results_valid = TRUE;
|
||||
d3_data->nd_results_valid = true;
|
||||
}
|
||||
|
||||
/* no scan should be active at this point */
|
||||
|
||||
@@ -1323,7 +1323,7 @@ static void iwl_mvm_lari_cfg(struct iwl_mvm *mvm)
|
||||
|
||||
if (le32_to_cpu(cmd.oem_uhb_allow_bitmap) & IWL_UATS_VLP_AP_SUPPORTED ||
|
||||
le32_to_cpu(cmd.oem_uhb_allow_bitmap) & IWL_UATS_AFC_AP_SUPPORTED)
|
||||
mvm->fwrt.uats_enabled = TRUE;
|
||||
mvm->fwrt.uats_enabled = true;
|
||||
}
|
||||
|
||||
void iwl_mvm_get_bios_tables(struct iwl_mvm *mvm)
|
||||
|
||||
@@ -1993,7 +1993,7 @@ void iwl_mvm_nic_restart(struct iwl_mvm *mvm, bool fw_error)
|
||||
ieee80211_restart_hw(mvm->hw);
|
||||
} else if (mvm->fwrt.trans->dbg.restart_required) {
|
||||
IWL_DEBUG_INFO(mvm, "FW restart requested after debug collection\n");
|
||||
mvm->fwrt.trans->dbg.restart_required = FALSE;
|
||||
mvm->fwrt.trans->dbg.restart_required = false;
|
||||
ieee80211_restart_hw(mvm->hw);
|
||||
} else if (mvm->trans->trans_cfg->device_family <= IWL_DEVICE_FAMILY_8000) {
|
||||
ieee80211_restart_hw(mvm->hw);
|
||||
|
||||
Reference in New Issue
Block a user