fix:clear the monthly branch compilation alarm

Signed-off-by: zhang <zhangfengxi@huawei.com>
This commit is contained in:
zhang
2022-07-18 14:27:40 +08:00
parent a3fdd38bd0
commit 7b3b47037b
+13 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -33,7 +33,16 @@ struct SvcStatListenerHolderList {
bool inited;
};
static struct SvcStatListenerHolderList g_holoderList = { 0 };
static struct SvcStatListenerHolderList g_holoderList = {
.mutex = {
.realMutex = NULL,
},
.list = {
.prev = NULL,
.next = NULL,
},
.inited = false,
};
static void UServStatListenerHolderListInit(void)
{
@@ -86,13 +95,13 @@ int32_t UServStatListenerHolderNotifyStatus(struct ServStatListenerHolder *holde
SERVIE_STATUS_LISTENER_NOTIFY, data, NULL);
if (ret != HDF_SUCCESS) {
HDF_LOGE("failed to notify service status, dispatch error");
HdfSbufRecycle(data);
return HDF_FAILURE;
} else {
HDF_LOGD("notify service status success");
HdfSbufRecycle(data);
return HDF_SUCCESS;
}
HdfSbufRecycle(data);
return HDF_SUCCESS;
}
void UServStatListenerHolderRecycle(struct ServStatListenerHolder *holder)