diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-03-01 10:18:00 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-03-12 03:57:36 -0400 |
commit | e70fe7eb9dec9c7b7c570a489f198b93b5ca609b (patch) | |
tree | 320a6ac8ed830a80a49906c9f3582862886b98c6 | |
parent | 6a65bd534e5844d42d432eb41ee04e2a242bfc60 (diff) |
iwlwifi: fix smatch warning: warn: inconsistent indenting
While at it, fix a few checkpatch issues.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/rs.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/tx.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.c | 18 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/rs.c | 18 |
4 files changed, 25 insertions, 24 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/rs.c b/drivers/net/wireless/iwlwifi/dvm/rs.c index 32b78a66536d..3bd7c86e90d9 100644 --- a/drivers/net/wireless/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/iwlwifi/dvm/rs.c | |||
@@ -3153,12 +3153,13 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
3153 | desc += sprintf(buff+desc, "lq type %s\n", | 3153 | desc += sprintf(buff+desc, "lq type %s\n", |
3154 | (is_legacy(tbl->lq_type)) ? "legacy" : "HT"); | 3154 | (is_legacy(tbl->lq_type)) ? "legacy" : "HT"); |
3155 | if (is_Ht(tbl->lq_type)) { | 3155 | if (is_Ht(tbl->lq_type)) { |
3156 | desc += sprintf(buff+desc, " %s", | 3156 | desc += sprintf(buff + desc, " %s", |
3157 | (is_siso(tbl->lq_type)) ? "SISO" : | 3157 | (is_siso(tbl->lq_type)) ? "SISO" : |
3158 | ((is_mimo2(tbl->lq_type)) ? "MIMO2" : "MIMO3")); | 3158 | ((is_mimo2(tbl->lq_type)) ? "MIMO2" : "MIMO3")); |
3159 | desc += sprintf(buff+desc, " %s", | 3159 | desc += sprintf(buff + desc, " %s", |
3160 | (tbl->is_ht40) ? "40MHz" : "20MHz"); | 3160 | (tbl->is_ht40) ? "40MHz" : "20MHz"); |
3161 | desc += sprintf(buff+desc, " %s %s %s\n", (tbl->is_SGI) ? "SGI" : "", | 3161 | desc += sprintf(buff + desc, " %s %s %s\n", |
3162 | (tbl->is_SGI) ? "SGI" : "", | ||
3162 | (lq_sta->is_green) ? "GF enabled" : "", | 3163 | (lq_sta->is_green) ? "GF enabled" : "", |
3163 | (lq_sta->is_agg) ? "AGG on" : ""); | 3164 | (lq_sta->is_agg) ? "AGG on" : ""); |
3164 | } | 3165 | } |
diff --git a/drivers/net/wireless/iwlwifi/dvm/tx.c b/drivers/net/wireless/iwlwifi/dvm/tx.c index 1e40a12de077..275df12a6045 100644 --- a/drivers/net/wireless/iwlwifi/dvm/tx.c +++ b/drivers/net/wireless/iwlwifi/dvm/tx.c | |||
@@ -189,9 +189,9 @@ static void iwlagn_tx_cmd_build_rate(struct iwl_priv *priv, | |||
189 | rate_flags |= RATE_MCS_CCK_MSK; | 189 | rate_flags |= RATE_MCS_CCK_MSK; |
190 | 190 | ||
191 | /* Set up antennas */ | 191 | /* Set up antennas */ |
192 | if (priv->lib->bt_params && | 192 | if (priv->lib->bt_params && |
193 | priv->lib->bt_params->advanced_bt_coexist && | 193 | priv->lib->bt_params->advanced_bt_coexist && |
194 | priv->bt_full_concurrent) { | 194 | priv->bt_full_concurrent) { |
195 | /* operated as 1x1 in full concurrency mode */ | 195 | /* operated as 1x1 in full concurrency mode */ |
196 | priv->mgmt_tx_ant = iwl_toggle_tx_ant(priv, priv->mgmt_tx_ant, | 196 | priv->mgmt_tx_ant = iwl_toggle_tx_ant(priv, priv->mgmt_tx_ant, |
197 | first_antenna(priv->nvm_data->valid_tx_ant)); | 197 | first_antenna(priv->nvm_data->valid_tx_ant)); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c index f1d73d5e6eff..66ca000f0da1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -1014,34 +1014,34 @@ static int validate_sec_sizes(struct iwl_drv *drv, | |||
1014 | 1014 | ||
1015 | /* Verify that uCode images will fit in card's SRAM. */ | 1015 | /* Verify that uCode images will fit in card's SRAM. */ |
1016 | if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST) > | 1016 | if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST) > |
1017 | cfg->max_inst_size) { | 1017 | cfg->max_inst_size) { |
1018 | IWL_ERR(drv, "uCode instr len %Zd too large to fit in\n", | 1018 | IWL_ERR(drv, "uCode instr len %Zd too large to fit in\n", |
1019 | get_sec_size(pieces, IWL_UCODE_REGULAR, | 1019 | get_sec_size(pieces, IWL_UCODE_REGULAR, |
1020 | IWL_UCODE_SECTION_INST)); | 1020 | IWL_UCODE_SECTION_INST)); |
1021 | return -1; | 1021 | return -1; |
1022 | } | 1022 | } |
1023 | 1023 | ||
1024 | if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA) > | 1024 | if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA) > |
1025 | cfg->max_data_size) { | 1025 | cfg->max_data_size) { |
1026 | IWL_ERR(drv, "uCode data len %Zd too large to fit in\n", | 1026 | IWL_ERR(drv, "uCode data len %Zd too large to fit in\n", |
1027 | get_sec_size(pieces, IWL_UCODE_REGULAR, | 1027 | get_sec_size(pieces, IWL_UCODE_REGULAR, |
1028 | IWL_UCODE_SECTION_DATA)); | 1028 | IWL_UCODE_SECTION_DATA)); |
1029 | return -1; | 1029 | return -1; |
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST) > | 1032 | if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST) > |
1033 | cfg->max_inst_size) { | 1033 | cfg->max_inst_size) { |
1034 | IWL_ERR(drv, "uCode init instr len %Zd too large to fit in\n", | 1034 | IWL_ERR(drv, "uCode init instr len %Zd too large to fit in\n", |
1035 | get_sec_size(pieces, IWL_UCODE_INIT, | 1035 | get_sec_size(pieces, IWL_UCODE_INIT, |
1036 | IWL_UCODE_SECTION_INST)); | 1036 | IWL_UCODE_SECTION_INST)); |
1037 | return -1; | 1037 | return -1; |
1038 | } | 1038 | } |
1039 | 1039 | ||
1040 | if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA) > | 1040 | if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA) > |
1041 | cfg->max_data_size) { | 1041 | cfg->max_data_size) { |
1042 | IWL_ERR(drv, "uCode init data len %Zd too large to fit in\n", | 1042 | IWL_ERR(drv, "uCode init data len %Zd too large to fit in\n", |
1043 | get_sec_size(pieces, IWL_UCODE_REGULAR, | 1043 | get_sec_size(pieces, IWL_UCODE_REGULAR, |
1044 | IWL_UCODE_SECTION_DATA)); | 1044 | IWL_UCODE_SECTION_DATA)); |
1045 | return -1; | 1045 | return -1; |
1046 | } | 1046 | } |
1047 | return 0; | 1047 | return 0; |
diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index 6578498dd5af..d8dacb3be10a 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c | |||
@@ -3343,16 +3343,16 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
3343 | (is_legacy(rate)) ? "legacy" : | 3343 | (is_legacy(rate)) ? "legacy" : |
3344 | is_vht(rate) ? "VHT" : "HT"); | 3344 | is_vht(rate) ? "VHT" : "HT"); |
3345 | if (!is_legacy(rate)) { | 3345 | if (!is_legacy(rate)) { |
3346 | desc += sprintf(buff+desc, " %s", | 3346 | desc += sprintf(buff + desc, " %s", |
3347 | (is_siso(rate)) ? "SISO" : "MIMO2"); | 3347 | (is_siso(rate)) ? "SISO" : "MIMO2"); |
3348 | desc += sprintf(buff+desc, " %s", | 3348 | desc += sprintf(buff + desc, " %s", |
3349 | (is_ht20(rate)) ? "20MHz" : | 3349 | (is_ht20(rate)) ? "20MHz" : |
3350 | (is_ht40(rate)) ? "40MHz" : | 3350 | (is_ht40(rate)) ? "40MHz" : |
3351 | (is_ht80(rate)) ? "80Mhz" : "BAD BW"); | 3351 | (is_ht80(rate)) ? "80Mhz" : "BAD BW"); |
3352 | desc += sprintf(buff+desc, " %s %s %s\n", | 3352 | desc += sprintf(buff + desc, " %s %s %s\n", |
3353 | (rate->sgi) ? "SGI" : "NGI", | 3353 | (rate->sgi) ? "SGI" : "NGI", |
3354 | (rate->ldpc) ? "LDPC" : "BCC", | 3354 | (rate->ldpc) ? "LDPC" : "BCC", |
3355 | (lq_sta->is_agg) ? "AGG on" : ""); | 3355 | (lq_sta->is_agg) ? "AGG on" : ""); |
3356 | } | 3356 | } |
3357 | desc += sprintf(buff+desc, "last tx rate=0x%X\n", | 3357 | desc += sprintf(buff+desc, "last tx rate=0x%X\n", |
3358 | lq_sta->last_rate_n_flags); | 3358 | lq_sta->last_rate_n_flags); |