From 11494f5c19ea7ca13ff4930efe58fe65ba956cd5 Mon Sep 17 00:00:00 2001 From: wen-xu83 Date: Tue, 14 Jun 2022 16:41:38 +0800 Subject: [PATCH] prebuild warning fix Signed-off-by: wen-xu83 --- khdf/liteos/model/usb/host/src/usb_pnp_notify.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) mode change 100644 => 100755 khdf/liteos/model/usb/host/src/usb_pnp_notify.c diff --git a/khdf/liteos/model/usb/host/src/usb_pnp_notify.c b/khdf/liteos/model/usb/host/src/usb_pnp_notify.c old mode 100644 new mode 100755 index 01dc4be..c6584e0 --- a/khdf/liteos/model/usb/host/src/usb_pnp_notify.c +++ b/khdf/liteos/model/usb/host/src/usb_pnp_notify.c @@ -56,7 +56,7 @@ struct OsalMutex g_usbSendEventLock; struct usb_device *g_usbDevice = NULL; struct UsbPnpAddRemoveInfo g_usbPnpInfo; struct DListHead g_usbPnpInfoListHead; -#if USB_PNP_NOTIFY_TEST_MODE == true +#if USB_PNP_NOTIFY_TEST_MODE == 1 struct UsbPnpNotifyMatchInfoTable *g_testUsbPnpInfo = NULL; #endif @@ -458,7 +458,7 @@ ERROR_DEVICE_INFO: return ret; } -#if USB_PNP_NOTIFY_TEST_MODE == true +#if USB_PNP_NOTIFY_TEST_MODE == 1 static void TestReadPnpInfo(struct HdfSBuf *data) { uint32_t infoSize; @@ -584,7 +584,7 @@ static int32_t UsbPnpNotifyReportThread(void* arg) struct HdfDeviceObject *deviceObject = (struct HdfDeviceObject *)arg; while (g_usbPnpThreadRunningFlag) { -#if USB_PNP_NOTIFY_TEST_MODE == false +#if USB_PNP_NOTIFY_TEST_MODE == 0 ret = wait_event_interruptible(g_usbPnpNotifyReportWait, g_usbDevice != NULL); #else ret = wait_event_interruptible(g_usbPnpNotifyReportWait, @@ -595,7 +595,7 @@ static int32_t UsbPnpNotifyReportThread(void* arg) } OsalMutexLock(&g_usbSendEventLock); -#if USB_PNP_NOTIFY_TEST_MODE == true +#if USB_PNP_NOTIFY_TEST_MODE == 1 if ((g_usbPnpNotifyCmdType == USB_PNP_NOTIFY_ADD_TEST) || \ (g_usbPnpNotifyCmdType == USB_PNP_NOTIFY_REMOVE_TEST)) { ret = TestPnpNotifyHdfSendEvent(deviceObject); @@ -608,7 +608,7 @@ static int32_t UsbPnpNotifyReportThread(void* arg) } else { ret = UsbPnpNotifyHdfSendEvent(deviceObject, g_usbDevice); } -#if USB_PNP_NOTIFY_TEST_MODE == true +#if USB_PNP_NOTIFY_TEST_MODE == 1 } #endif if (ret != HDF_SUCCESS) { @@ -616,7 +616,7 @@ static int32_t UsbPnpNotifyReportThread(void* arg) } g_usbDevice = NULL; -#if USB_PNP_NOTIFY_TEST_MODE == true +#if USB_PNP_NOTIFY_TEST_MODE == 1 g_testUsbPnpInfo = NULL; #endif OsalMutexUnlock(&g_usbSendEventLock); @@ -914,7 +914,7 @@ static int32_t UsbPnpNotifyDispatch(struct HdfDeviceIoClient *client, int32_t cm case USB_PNP_NOTIFY_REPORT_INTERFACE: UsbPnpNotifyFirstReportDevice(client); break; -#if USB_PNP_NOTIFY_TEST_MODE == true +#if USB_PNP_NOTIFY_TEST_MODE == 1 case USB_PNP_NOTIFY_ADD_TEST: TestReadPnpInfo(data); wake_up_interruptible(&g_usbPnpNotifyReportWait); -- Gitee