From ce85da6dbfb64d0c528c333bf31e75168f7aa58c Mon Sep 17 00:00:00 2001 From: chen Date: Wed, 10 Aug 2022 10:08:24 +0800 Subject: [PATCH] fix code warning Signed-off-by: chen Change-Id: Iaa5a07c5af583dc97390513227e779d376b3a489 --- samgr_endpoint/source/default_client_rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samgr_endpoint/source/default_client_rpc.c b/samgr_endpoint/source/default_client_rpc.c index c041a0e..d18730b 100644 --- a/samgr_endpoint/source/default_client_rpc.c +++ b/samgr_endpoint/source/default_client_rpc.c @@ -229,10 +229,10 @@ static SvcIdentity QueryIdentity(const char *service, const char *feature) MessageOption flag; MessageOptionInit(&flag); int ret = SendRequest(*samgr, INVALID_INDEX, &req, &reply, flag, (uintptr_t *)&replyBuf); - int32_t sa_ret = EC_FAILURE; - ret = (ret != EC_SUCCESS) ? EC_FAILURE : ReadInt32(&reply, &sa_ret); + int32_t saRet = EC_FAILURE; + ret = (ret != EC_SUCCESS) ? EC_FAILURE : ReadInt32(&reply, &saRet); SvcIdentity target = {INVALID_INDEX, INVALID_INDEX, INVALID_INDEX}; - if (sa_ret == EC_SUCCESS) { + if (saRet == EC_SUCCESS) { ReadRemoteObject(&reply, &target); uint32_t token; ReadUint32(&reply, &token); -- Gitee