qcacmn: Set the default value for variable 'ret'

The variable 'ret' in ‘__dp_ipa_tx_buf_smmu_mapping()’ maybe
used uninitialized. Set one default value for it.

CRs-Fixed: 2771822
Change-Id: Ibf4bf6aa2076de84b3a47122ff4f3cae055cd0f7
This commit is contained in:
Guisen Yang
2020-09-08 14:29:45 +08:00
committed by snandini
orang tua 78efc5e526
melakukan 60b35027b2

Melihat File

@@ -164,7 +164,7 @@ static QDF_STATUS __dp_ipa_tx_buf_smmu_mapping(
bool create)
{
uint32_t index;
QDF_STATUS ret;
QDF_STATUS ret = QDF_STATUS_SUCCESS;
uint32_t tx_buffer_cnt = soc->ipa_uc_tx_rsc.alloc_tx_buf_cnt;
qdf_nbuf_t nbuf;