diff options
| author | Sreelakshmi Konamki <c_skonam@qti.qualcomm.com> | 2015-05-27 19:12:32 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-06-21 20:40:53 +0530 |
| commit | 36b9fbdbd2bdb7c8fec9280c5626322425e6cd97 (patch) | |
| tree | 88434d0ca426c479d36bb8f00a44fc76e18ca88c | |
| parent | 204ab25aaeab753f43ce54638003b2e85f72a63b (diff) | |
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
| -rw-r--r-- | CORE/SAP/src/sapChSelect.c | 2 |
1 files changed, 0 insertions, 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; |
