Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Abhishek Tamboli and committed by
Greg Kroah-Hartman
f47333c6 ed830af1

+1 -1
+1 -1
drivers/usb/gadget/function/f_uvc.c
··· 465 465 memcpy(mem, desc, (desc)->bLength); \ 466 466 *(dst)++ = mem; \ 467 467 mem += (desc)->bLength; \ 468 - } while (0); 468 + } while (0) 469 469 470 470 #define UVC_COPY_DESCRIPTORS(mem, dst, src) \ 471 471 do { \