diff --git a/src/usb_types.h b/src/usb_types.h index 91946144..9f46b5c5 100644 --- a/src/usb_types.h +++ b/src/usb_types.h @@ -201,9 +201,8 @@ struct usb_device_qualifier_descriptor { * string descriptor. */ #define make_usb_string_descriptor(str) \ - { \ - .bLength = sizeof(struct usb_string_descriptor) + sizeof(u##str) - 2, \ - .bDescriptorType = USB_STRING_DESCRIPTOR, .bString = u##str \ - } + {.bLength = sizeof(struct usb_string_descriptor) + sizeof(u##str) - 2, \ + .bDescriptorType = USB_STRING_DESCRIPTOR, \ + .bString = u##str} #endif diff --git a/src/utils.h b/src/utils.h index ef54dccd..717e6d70 100644 --- a/src/utils.h +++ b/src/utils.h @@ -390,10 +390,7 @@ typedef struct { int count; } spinlock_t ALIGNED(SPINLOCK_ALIGN); -#define SPINLOCK_INIT \ - { \ - -1, 0 \ - } +#define SPINLOCK_INIT {-1, 0} #define DECLARE_SPINLOCK(n) spinlock_t n = SPINLOCK_INIT; void spin_init(spinlock_t *lock);