From ef72481ffee3403dc50e93b5686c30ed841e0257 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 17 May 2025 12:43:02 -0600 Subject: Consistently use LM_UNUSED instead of (void) casts --- libusb/usb_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libusb/usb_common.c') diff --git a/libusb/usb_common.c b/libusb/usb_common.c index 32aa53f..9d438dc 100644 --- a/libusb/usb_common.c +++ b/libusb/usb_common.c @@ -100,8 +100,7 @@ void usb_common_lateinit(void) { tud_init(CONFIG_USB_COMMON_RHPORT); } -COROUTINE usb_common_cr(void *_arg) { - (void) _arg; +COROUTINE usb_common_cr(void *LM_UNUSED(_arg)) { cr_begin(); for (;;) { -- cgit v1.2.3-2-g168b From 7cbd849648d41c8b55b5b5fe618b8d20e75db868 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 17 May 2025 12:38:59 -0600 Subject: Sort+align #includes --- libusb/usb_common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libusb/usb_common.c') diff --git a/libusb/usb_common.c b/libusb/usb_common.c index 9d438dc..9b222d6 100644 --- a/libusb/usb_common.c +++ b/libusb/usb_common.c @@ -4,12 +4,12 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include /* for uint{n}_t types */ -#include /* for size_t */ -#include /* memcpy() */ -#include /* for malloc(), realloc(), reallocarray() */ +#include /* for size_t */ +#include /* for uint{n}_t types */ +#include /* for malloc(), realloc(), reallocarray() */ +#include /* memcpy() */ -#include /* for various tusb_*_t types */ +#include /* for various tusb_*_t types */ #include -- cgit v1.2.3-2-g168b From 556f3ff6ccb9fa4b193d91216f85e8ade33b4383 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 17 May 2025 12:51:18 -0600 Subject: Tidy some whitespace --- libusb/usb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libusb/usb_common.c') diff --git a/libusb/usb_common.c b/libusb/usb_common.c index 9b222d6..4fe7dd4 100644 --- a/libusb/usb_common.c +++ b/libusb/usb_common.c @@ -184,7 +184,7 @@ uint8_t const *tud_descriptor_device_cb(void) { .bNumConfigurations = 0, /* Number of possible configurations */ }; desc.bNumConfigurations = globals.configc; - return (uint8_t const *) &desc; + return (uint8_t const *)&desc; } /** -- cgit v1.2.3-2-g168b