Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 954c0e72 authored by Xiaoyu Ye's avatar Xiaoyu Ye Committed by Gerrit - the friendly Code Review server
Browse files

drivers: soc: apr: add initialization of a local variable



A local variable "rc" might be used without initialization
in function "apr_tal_rx_intents_config". Initialize it to
zero to prevent potential issue.

Change-Id: I9ceb763fa8a23fcefc83c1800da93ef4f3e6d5bc
Signed-off-by: default avatarXiaoyu Ye <benyxy@codeaurora.org>
parent 8e0e97e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -239,7 +239,7 @@ int apr_tal_rx_intents_config(struct apr_svc_ch_dev *apr_ch,
			      int num_of_intents, uint32_t size)
{
	int i;
	int rc;
	int rc = 0;

	if (!apr_ch || !num_of_intents || !size) {
		pr_err("%s: Invalid parameter\n", __func__);