fix: 修复一些静态检查工具发现的问题
Signed-off-by: Far <yesiyuan2@huawei.com> Change-Id: I2b93259d55a9eb1a9dfd5887fd7821c15274bb7f
This commit is contained in:
@@ -300,7 +300,7 @@ UINT32 LOS_PmRegister(LOS_PmNodeType type, VOID *node)
|
||||
return LOS_EINVAL;
|
||||
}
|
||||
|
||||
STATIC UINT32 OsPmDeviceUnregister(LosPmCB *pm, LosPmDevice *device)
|
||||
STATIC UINT32 OsPmDeviceUnregister(LosPmCB *pm, const LosPmDevice *device)
|
||||
{
|
||||
LOS_SpinLock(&g_pmSpin);
|
||||
if (pm->device == device) {
|
||||
|
||||
Reference in New Issue
Block a user