From 0daa9447d2c6ba099f4fbc232ed8aa293a3f639a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 10 Oct 2017 16:30:36 -0700 Subject: [PATCH] qcacld-3.0: Fix csr_check_concurrent_channel_overlap() style issues Checkpatch reported the following issues, so fix them: - ERROR: else should follow close brace '}' - WARNING: braces {} are not necessary for single statement blocks Change-Id: I9c8d329d70ee258834eaaea0183ba2e36643b572 CRs-Fixed: 2124908 --- core/sme/src/csr/csr_util.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 63c0dc0b533e..bea5844f2dad 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -1278,16 +1278,14 @@ uint16_t csr_check_concurrent_channel_overlap(tpAniSirGlobal mac_ctx, (intf_ch > 14 && sap_ch > 14))) { if (policy_mgr_is_dbs_enable(mac_ctx->psoc)) intf_ch = 0; - } - else if (cc_switch_mode == + } else if (cc_switch_mode == QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL) { status = policy_mgr_get_sap_mandatory_channel( mac_ctx->psoc, (uint32_t *)&intf_ch); - if (QDF_IS_STATUS_ERROR(status)) { + if (QDF_IS_STATUS_ERROR(status)) sme_err("no mandatory channel"); - } } } else if ((intf_ch == sap_ch) && (cc_switch_mode == QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL)) { @@ -1295,9 +1293,8 @@ uint16_t csr_check_concurrent_channel_overlap(tpAniSirGlobal mac_ctx, status = policy_mgr_get_sap_mandatory_channel( mac_ctx->psoc, (uint32_t *)&intf_ch); - if (QDF_IS_STATUS_ERROR(status)) { + if (QDF_IS_STATUS_ERROR(status)) sme_err("no mandatory channel"); - } } }