From 181a089de64b007214a0dfbbeba119225c6aaa49 Mon Sep 17 00:00:00 2001 From: wen-xu83 Date: Tue, 14 Jun 2022 16:35:38 +0800 Subject: [PATCH] prebuild warning fix Signed-off-by: wen-xu83 --- model/usb/host/src/usb_pnp_notify.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) mode change 100644 => 100755 model/usb/host/src/usb_pnp_notify.c diff --git a/model/usb/host/src/usb_pnp_notify.c b/model/usb/host/src/usb_pnp_notify.c old mode 100644 new mode 100755 index c857b91..1c666b5 --- a/model/usb/host/src/usb_pnp_notify.c +++ b/model/usb/host/src/usb_pnp_notify.c @@ -47,7 +47,7 @@ struct OsalMutex g_gadgetSendEventLock; 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 @@ -403,7 +403,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; @@ -543,7 +543,7 @@ static int32_t UsbPnpNotifyReportThread(void* arg) struct HdfDeviceObject *deviceObject = (struct HdfDeviceObject *)arg; while (!kthread_should_stop()) { -#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, @@ -554,7 +554,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); @@ -566,7 +566,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) { @@ -574,7 +574,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); @@ -794,7 +794,7 @@ static int32_t UsbPnpNotifyDispatch(struct HdfDeviceIoClient *client, int32_t cm case USB_PNP_NOTIFY_REPORT_INTERFACE: usb_for_each_dev((void *)client, UsbPnpNotifyFirstReport); 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