Просмотр исходного кода

qcacld-3.0: Fix misleading indent

hdd_parse_disable_chan_cmd() misleadingly indents code after a for loop
without brackets in such a way that it is easy to assume the code is
inside the for loop, but it is not. Not only does this cause build
failure for some configurations, but is dangerously confusing for future
readers. Remove the misleading indentation in
hdd_parse_disable_chan_cmd().

Change-Id: I4af2bd4b05719354db730ef39a3b6ec18d6f842b
CRs-Fixed: 2290196
Dustin Brown 6 лет назад
Родитель
Сommit
3f0d7103fb
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      core/hdd/src/wlan_hdd_ioctl.c

+ 4 - 6
core/hdd/src/wlan_hdd_ioctl.c

@@ -7154,12 +7154,10 @@ static int hdd_parse_disable_chan_cmd(struct hdd_adapter *adapter, uint8_t *ptr)
 			hdd_ctx->original_channels->
 					channel_info[j].channel_num =
 							parsed_channels[j];
-			/*
-			 * Cache the channel list in regulatory also
-			 */
-			ucfg_reg_cache_channel_state(hdd_ctx->hdd_pdev,
-						     parsed_channels,
-						     num_channels);
+
+		/* Cache the channel list in regulatory also */
+		ucfg_reg_cache_channel_state(hdd_ctx->hdd_pdev, parsed_channels,
+					     num_channels);
 	} else {
 		for (i = 0; i < num_channels; i++) {
 			for (j = 0; j < num_channels; j++)