wifi: iwlwifi: don't check TAS block list size twice
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 31 Jan 2024 08:24:44 +0000 (10:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Feb 2024 13:15:15 +0000 (14:15 +0100)
Currenltly we check the validity of this variable twice.
Remove the second check.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://msgid.link/20240131091413.2234490624c4.I6399b652a3c83afff1b0b5f114604d15892ee01e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c

index c150a66eed07f232be75ac2ec64fee2a6dc89961..d88a9df20abeee362ed9a49c78b4b9880ada24ad 100644 (file)
@@ -317,12 +317,6 @@ int iwl_acpi_get_tas(struct iwl_fw_runtime *fwrt,
        cmd->v4.block_list_size = cpu_to_le32(block_list_size);
 
        IWL_DEBUG_RADIO(fwrt, "TAS array size %u\n", block_list_size);
-       if (block_list_size > APCI_WTAS_BLACK_LIST_MAX) {
-               IWL_DEBUG_RADIO(fwrt, "TAS invalid array size value %u\n",
-                               block_list_size);
-               ret = -EINVAL;
-               goto out_free;
-       }
 
        for (i = 0; i < block_list_size; i++) {
                u32 country;