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

Commit 1d36d1fe authored by Vikram Panduranga's avatar Vikram Panduranga
Browse files

drivers: soc: Initialize return var to default value



Initialize return variable to default invalid handle before
it is used. During an error condition it sets correct
error code to avoid returning uninitialized return value.

Change-Id: Ibad70b1bb364b60439c4988e318105a733396db8
Signed-off-by: default avatarVikram Panduranga <vpandura@codeaurora.org>
CRs-Fixed: 1059495
parent 9e2d528d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ struct apr_svc_ch_dev *apr_tal_open(uint32_t clnt, uint32_t dest, uint32_t dl,
		pr_err("%s: glink_open failed %s\n", __func__,
		       svc_names[dest][clnt]);
		apr_ch->handle = NULL;
		rc = -EINVAL;
		goto unlock;
	}