From 60b35027b274ea62fabb04bf40a7079cd0d76314 Mon Sep 17 00:00:00 2001 From: Guisen Yang Date: Tue, 8 Sep 2020 14:29:45 +0800 Subject: [PATCH] qcacmn: Set the default value for variable 'ret' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- dp/wifi3.0/dp_ipa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_ipa.c b/dp/wifi3.0/dp_ipa.c index 43b835403f..09cdf75be6 100644 --- a/dp/wifi3.0/dp_ipa.c +++ b/dp/wifi3.0/dp_ipa.c @@ -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;