From 36b9fbdbd2bdb7c8fec9280c5626322425e6cd97 Mon Sep 17 00:00:00 2001 From: Sreelakshmi Konamki Date: Wed, 27 May 2015 19:12:32 +0530 Subject: qcacld-2.0: Fix to remove unreachable code This is prima to qcacld-2.0 propagation Remove Infeasible condition in sapweightRssiCount The variable 'countweight' is updating by an expression, which always return positive. So the condition 'countWeight < 0' can not be true. Change-Id: I336abb94293fd92567ab6375a12760b822530018 CRs-Fixed: 826360 --- CORE/SAP/src/sapChSelect.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/CORE/SAP/src/sapChSelect.c b/CORE/SAP/src/sapChSelect.c index 28a8141374d9..905dba37b491 100644 --- a/CORE/SAP/src/sapChSelect.c +++ b/CORE/SAP/src/sapChSelect.c @@ -743,8 +743,6 @@ v_U32_t sapweightRssiCount(v_S7_t rssi, v_U16_t count) if(countWeight > SOFTAP_COUNT_WEIGHT) countWeight = SOFTAP_COUNT_WEIGHT; - else if (countWeight < 0) - countWeight = 0; rssicountWeight = rssiWeight + countWeight; -- cgit v1.2.3