wifi: iwlwifi: don't use TRUE/FALSE with bool
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 16:58:40 +0000 (18:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Feb 2024 20:24:52 +0000 (21:24 +0100)
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>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/ops.c

index 6cfcf1c..561d0c2 100644 (file)
@@ -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) ==
index 26c01d7..b6a9896 100644 (file)
@@ -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 */
index 5381afd..e1c2b7f 100644 (file)
@@ -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)
index 77dce70..a93981c 100644 (file)
@@ -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);