From 85eb22c15bd9f37f0a5686708b48e58716358dd3 Mon Sep 17 00:00:00 2001 From: Harprit Chhabada Date: Wed, 10 Oct 2018 16:17:24 -0700 Subject: [PATCH] qcacld-3.0: remove the comparison check for noise_floor_weight noise_floor_weight is defined as unsigned in sap_weight_channel_noise_floor(), but is checked for value less than 0, which will never be true. Change-Id: Idd8215c479eeae2ffd712434aae740f8465a8b45 CRs-Fixed: 2310624 --- core/sap/src/sap_ch_select.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/sap/src/sap_ch_select.c b/core/sap/src/sap_ch_select.c index 410e906f02..4a9bfbeb0c 100644 --- a/core/sap/src/sap_ch_select.c +++ b/core/sap/src/sap_ch_select.c @@ -831,8 +831,6 @@ static uint32_t sap_weight_channel_noise_floor(struct sap_context *sap_ctx, if (noise_floor_weight > softap_nf_weight_local) noise_floor_weight = softap_nf_weight_local; - else if (noise_floor_weight < 0) - noise_floor_weight = 0; QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH, "In %s, nf=%d, nfwc=%d, nfwl=%d, nfw=%d",