qcacld-3.0: Fix compilation error
Fix compilation error of "sessionId may be used uninitialized in this function" by initializing sessionId to CSR_SESSION_ID_INVALID. CRs-Fixed: 2055208 Change-Id: Id2da1f3ee028d85b1e0c1dfc4f65af5a54dd4479
This commit is contained in:
@@ -16496,7 +16496,7 @@ QDF_STATUS csr_get_snr(tpAniSirGlobal pMac,
|
|||||||
{
|
{
|
||||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||||
struct scheduler_msg msg = {0};
|
struct scheduler_msg msg = {0};
|
||||||
uint32_t sessionId;
|
uint32_t sessionId = CSR_SESSION_ID_INVALID;
|
||||||
tAniGetSnrReq *pMsg;
|
tAniGetSnrReq *pMsg;
|
||||||
|
|
||||||
pMsg = (tAniGetSnrReq *) qdf_mem_malloc(sizeof(tAniGetSnrReq));
|
pMsg = (tAniGetSnrReq *) qdf_mem_malloc(sizeof(tAniGetSnrReq));
|
||||||
|
Reference in New Issue
Block a user