Fix the issues observed in static source code analysis.
Resolve issues found by static source code analysis.
diff --git a/CORE/SME/src/rrm/sme_rrm.c b/CORE/SME/src/rrm/sme_rrm.c
index cd44ce5..8aaf31d 100644
--- a/CORE/SME/src/rrm/sme_rrm.c
+++ b/CORE/SME/src/rrm/sme_rrm.c
@@ -770,8 +770,16 @@
tpSirNeighborBssDescripton pNeighborBssDesc;
tANI_U32 roamScore = 0;
- VOS_ASSERT(pNeighborReportDesc != NULL);
- VOS_ASSERT(pNeighborReportDesc->pNeighborBssDescription != NULL);
+ if (NULL == pNeighborReportDesc)
+ {
+ VOS_ASSERT(0);
+ return;
+ }
+ if (NULL == pNeighborReportDesc->pNeighborBssDescription)
+ {
+ VOS_ASSERT(0);
+ return;
+ }
pNeighborBssDesc = pNeighborReportDesc->pNeighborBssDescription;
@@ -835,8 +843,16 @@
tListElem *pEntry;
tRrmNeighborReportDesc *pTempNeighborReportDesc;
- VOS_ASSERT(pNeighborReportDesc != NULL);
- VOS_ASSERT(pNeighborReportDesc->pNeighborBssDescription != NULL);
+ if (NULL == pNeighborReportDesc)
+ {
+ VOS_ASSERT(0);
+ return;
+ }
+ if (NULL == pNeighborReportDesc->pNeighborBssDescription)
+ {
+ VOS_ASSERT(0);
+ return;
+ }
if (csrLLIsListEmpty(&pSmeRrmContext->neighborReportCache, LL_ACCESS_LOCK))
{