msm: ADSPRPC: Fix return value when dsp capabilities
is not supported
Use new variable to find is dsp capability support
was successful.
Fix regression issue of 3657372.
Change-Id: Idb427f53ed8f23a0c2a60852457f7721f1ebca87
Signed-off-by: vgattupa <vgattupa@codeaurora.org>
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c
index 40abe94..a270394 100644
--- a/drivers/char/adsprpc.c
+++ b/drivers/char/adsprpc.c
@@ -3951,7 +3951,7 @@
} i;
void *param = (char *)ioctl_param;
struct fastrpc_file *fl = (struct fastrpc_file *)file->private_data;
- int size = 0, err = 0;
+ int size = 0, err = 0, req_complete = 0;
uint32_t info;
static bool isQueryDone;
@@ -4155,8 +4155,8 @@
if (err)
goto bail;
if ((fl->cid == CDSP_DOMAIN_ID) && !isQueryDone) {
- err = fastrpc_update_cdsp_support(fl);
- if (!err)
+ req_complete = fastrpc_update_cdsp_support(fl);
+ if (!req_complete)
isQueryDone = true;
}
break;