mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-12-04 06:03:18 +00:00
fix: initizlize ret = -1
Signed-off-by: jwx1282937 <jialinbo@huawei.com>
This commit is contained in:
parent
868b42d23f
commit
9169632e68
@ -102,7 +102,7 @@ static int32_t ProcessProto(uint32_t code, IpcIo *data, IpcIo *reply, MessageOpt
|
|||||||
|
|
||||||
static int32_t DBinderRemoteRequest(uint32_t code, IpcIo *data, IpcIo *reply, MessageOption *option)
|
static int32_t DBinderRemoteRequest(uint32_t code, IpcIo *data, IpcIo *reply, MessageOption *option)
|
||||||
{
|
{
|
||||||
int32_t ret;
|
int32_t ret = -1;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case GET_PROTO_INFO: {
|
case GET_PROTO_INFO: {
|
||||||
ret = ProcessProto(code, data, reply, option);
|
ret = ProcessProto(code, data, reply, option);
|
||||||
@ -110,7 +110,6 @@ static int32_t DBinderRemoteRequest(uint32_t code, IpcIo *data, IpcIo *reply, Me
|
|||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
RPC_LOG_ERROR("unknown dbinder code %u", code);
|
RPC_LOG_ERROR("unknown dbinder code %u", code);
|
||||||
ret = -1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user