Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: iwlwifi: trans: rename at_least variable to min_mode

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>

authored by

Jason A. Donenfeld and committed by
Eric Biggers
d96f5620 dcb6fa37

+4 -4
+4 -4
drivers/net/wireless/intel/iwlwifi/iwl-trans.c
··· 129 129 iwl_trans_determine_restart_mode(struct iwl_trans *trans) 130 130 { 131 131 struct iwl_trans_dev_restart_data *data; 132 - enum iwl_reset_mode at_least = 0; 132 + enum iwl_reset_mode min_mode = 0; 133 133 unsigned int index; 134 134 static const enum iwl_reset_mode escalation_list_old[] = { 135 135 IWL_RESET_MODE_SW_RESET, ··· 173 173 } 174 174 175 175 if (trans->restart.during_reset) 176 - at_least = IWL_RESET_MODE_REPROBE; 176 + min_mode = IWL_RESET_MODE_REPROBE; 177 177 178 178 data = iwl_trans_get_restart_data(trans->dev); 179 179 if (!data) 180 - return at_least; 180 + return min_mode; 181 181 182 182 if (!data->backoff && 183 183 ktime_get_boottime_seconds() - data->last_error >= ··· 194 194 data->backoff = false; 195 195 } 196 196 197 - return max(at_least, escalation_list[index]); 197 + return max(min_mode, escalation_list[index]); 198 198 } 199 199 200 200 #define IWL_TRANS_TOP_FOLLOWER_WAIT 180 /* ms */