Browse Source

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
Harprit Chhabada 6 years ago
parent
commit
85eb22c15b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      core/sap/src/sap_ch_select.c

+ 0 - 2
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",