diff options
author | Sara Sharon <sara.sharon@intel.com> | 2016-11-20 06:50:39 -0500 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2017-02-03 09:26:39 -0500 |
commit | 4f23f206ddce85a92b1acdebe0f4e9ed01b1d3f4 (patch) | |
tree | 4000e95e42dc516caddd313db30a5936ce42eb28 /drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | |
parent | 6574dc943fc32a2fce69fab14891abca7eecb67c (diff) |
iwlwifi: mvm: cleanup incorrect and redundant define
Currently we have up to 3 phy contexts - defined by NUM_PHY_CTX.
However - some code paths validate the ID by using MAX_PHYS define
which is set to 4.
While there is no harm it is incorrect - since the maximum is 3.
Remove the define and use the correct one.
Cleanup the code a bit while at it.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h b/drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h index 0b77073e719a..91f53596130b 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | |||
@@ -713,7 +713,6 @@ struct iwl_error_resp { | |||
713 | #define MAX_MACS_IN_BINDING (3) | 713 | #define MAX_MACS_IN_BINDING (3) |
714 | #define MAX_BINDINGS (4) | 714 | #define MAX_BINDINGS (4) |
715 | #define AUX_BINDING_INDEX (3) | 715 | #define AUX_BINDING_INDEX (3) |
716 | #define MAX_PHYS (4) | ||
717 | 716 | ||
718 | /* Used to extract ID and color from the context dword */ | 717 | /* Used to extract ID and color from the context dword */ |
719 | #define FW_CTXT_ID_POS (0) | 718 | #define FW_CTXT_ID_POS (0) |