]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: trans: rename at_least variable to min_mode
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 23 Nov 2025 05:48:17 +0000 (06:48 +0100)
committerEric Biggers <ebiggers@kernel.org>
Sun, 23 Nov 2025 20:18:20 +0000 (12:18 -0800)
The subsequent commit is going to add a macro that redefines `at_least`
to mean something else. Given that the usage here in iwlwifi is the only
use of that identifier in the whole kernel, just rename it to a more
fitting name, `min_mode`.

Cc: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: "Jason A. Donenfeld" <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20251123054819.2371989-1-Jason@zx2c4.com
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-trans.c

index 5232f66c2d52ab4371a6f8783c6e29205f72d325..cc8a84018f70e77966d9e7701586866c3eeb70ca 100644 (file)
@@ -129,7 +129,7 @@ static enum iwl_reset_mode
 iwl_trans_determine_restart_mode(struct iwl_trans *trans)
 {
        struct iwl_trans_dev_restart_data *data;
-       enum iwl_reset_mode at_least = 0;
+       enum iwl_reset_mode min_mode = 0;
        unsigned int index;
        static const enum iwl_reset_mode escalation_list_old[] = {
                IWL_RESET_MODE_SW_RESET,
@@ -173,11 +173,11 @@ iwl_trans_determine_restart_mode(struct iwl_trans *trans)
        }
 
        if (trans->restart.during_reset)
-               at_least = IWL_RESET_MODE_REPROBE;
+               min_mode = IWL_RESET_MODE_REPROBE;
 
        data = iwl_trans_get_restart_data(trans->dev);
        if (!data)
-               return at_least;
+               return min_mode;
 
        if (!data->backoff &&
            ktime_get_boottime_seconds() - data->last_error >=
@@ -194,7 +194,7 @@ iwl_trans_determine_restart_mode(struct iwl_trans *trans)
                data->backoff = false;
        }
 
-       return max(at_least, escalation_list[index]);
+       return max(min_mode, escalation_list[index]);
 }
 
 #define IWL_TRANS_TOP_FOLLOWER_WAIT    180 /* ms */