mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-26 18:17:07 -04:00
style code view sensor redundant type conversion
Signed-off-by: sunxuejiao <sunxuejiao5@huawei.com>
This commit is contained in:
@@ -477,7 +477,7 @@ void ReleaseLightDriver(struct HdfDeviceObject *device)
|
||||
HdfWorkDestroy(&drvData->work);
|
||||
HdfWorkQueueDestroy(&drvData->workQueue);
|
||||
(void)OsalMutexDestroy(&drvData->mutex);
|
||||
(void)OsalMemFree(drvData);
|
||||
OsalMemFree(drvData);
|
||||
g_lightDrvData = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -306,7 +306,7 @@ void ReleaseVibratorDriver(struct HdfDeviceObject *device)
|
||||
|
||||
(void)DestroyVibratorHaptic();
|
||||
(void)OsalMutexDestroy(&drvData->mutex);
|
||||
(void)OsalMemFree(drvData);
|
||||
OsalMemFree(drvData);
|
||||
g_vibratorDrvData = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user