mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-12-03 13:40:55 +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)
|
||||
{
|
||||
int32_t ret;
|
||||
int32_t ret = -1;
|
||||
switch (code) {
|
||||
case GET_PROTO_INFO: {
|
||||
ret = ProcessProto(code, data, reply, option);
|
||||
@ -110,7 +110,6 @@ static int32_t DBinderRemoteRequest(uint32_t code, IpcIo *data, IpcIo *reply, Me
|
||||
}
|
||||
default: {
|
||||
RPC_LOG_ERROR("unknown dbinder code %u", code);
|
||||
ret = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user