From 3f0d7103fb6196add8ff03bdecff183a66563fc5 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Thu, 2 Aug 2018 12:01:52 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_ioctl.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index d011c6095252..9be3c28c63cb 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/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++)