]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: uvc: Remove extra semicolon from the macro
authorAbhishek Tamboli <abhishektamboli9@gmail.com>
Sun, 13 Oct 2024 14:25:11 +0000 (19:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2024 08:17:49 +0000 (10:17 +0200)
commitf47333c690e49a9042d721f9c493ad78bbff11ac
tree757b5dfe445e940350cda04adbb8eb0d8bf34d15
parented830af1846b60d7361968d8a58ae5c390a3df24
usb: gadget: uvc: Remove extra semicolon from the macro

Remove the extra semicolon after the
do {} while (0) in UVC_COPY_DESCRIPTOR macro.

Fix the following checkpatch.pl warning

WARNING: do {} while (0) macros should not be semicolon terminated
+#define UVC_COPY_DESCRIPTOR(mem, dst, desc) \
+ do { \
+ memcpy(mem, desc, (desc)->bLength); \
+ *(dst)++ = mem; \
+ mem += (desc)->bLength; \
+ } while (0);

Signed-off-by: Abhishek Tamboli <abhishektamboli9@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Link: https://lore.kernel.org/r/20241013142511.9946-1-abhishektamboli9@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uvc.c