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: Vikram Panduranga <vpandura@codeaurora.org> CRs-Fixed: 1059495
This commit is contained in:
parent
9e2d528dc4
commit
1d36d1fe94
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue