drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c:121 iwl_mvm_ftm_responder_cmd() warn: inconsistent indenting

From: kernel test robot
Date: Tue Jul 20 2021 - 02:57:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
commit: 20578872d503d5c211bdf334185ccd8afe4ae697 iwlwifi: mvm: responder: support responder config command version 8
date: 3 months ago
config: x86_64-randconfig-m001-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

smatch warnings:
drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c:121 iwl_mvm_ftm_responder_cmd() warn: inconsistent indenting

vim +121 drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c

95
96 static int
97 iwl_mvm_ftm_responder_cmd(struct iwl_mvm *mvm,
98 struct ieee80211_vif *vif,
99 struct cfg80211_chan_def *chandef)
100 {
101 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
102 /*
103 * The command structure is the same for versions 6, 7 and 8 (only the
104 * field interpretation is different), so the same struct can be use
105 * for all cases.
106 */
107 struct iwl_tof_responder_config_cmd_v8 cmd = {
108 .channel_num = chandef->chan->hw_value,
109 .cmd_valid_fields =
110 cpu_to_le32(IWL_TOF_RESPONDER_CMD_VALID_CHAN_INFO |
111 IWL_TOF_RESPONDER_CMD_VALID_BSSID |
112 IWL_TOF_RESPONDER_CMD_VALID_STA_ID),
113 .sta_id = mvmvif->bcast_sta.sta_id,
114 };
115 u8 cmd_ver = iwl_fw_lookup_cmd_ver(mvm->fw, LOCATION_GROUP,
116 TOF_RESPONDER_CONFIG_CMD, 6);
117 int err;
118
119 lockdep_assert_held(&mvm->mutex);
120
> 121 if (cmd_ver == 8)
122 iwl_mvm_ftm_responder_set_ndp(mvm, &cmd);
123
124 if (cmd_ver >= 7)
125 err = iwl_mvm_ftm_responder_set_bw_v2(chandef, &cmd.format_bw,
126 &cmd.ctrl_ch_position);
127 else
128 err = iwl_mvm_ftm_responder_set_bw_v1(chandef, &cmd.format_bw,
129 &cmd.ctrl_ch_position);
130
131 if (err) {
132 IWL_ERR(mvm, "Failed to set responder bandwidth\n");
133 return err;
134 }
135
136 memcpy(cmd.bssid, vif->addr, ETH_ALEN);
137
138 return iwl_mvm_send_cmd_pdu(mvm, iwl_cmd_id(TOF_RESPONDER_CONFIG_CMD,
139 LOCATION_GROUP, 0),
140 0, sizeof(cmd), &cmd);
141 }
142

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip