From: Mauro Carvalho Chehab Date: Sat, 27 Oct 2012 17:43:54 +0000 (-0300) Subject: [media] gscpa: get rid of warning: suggest braces around empty body X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ede4c3a5a6c0d4490e39a1695570c7a6e9cf7b33;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] gscpa: get rid of warning: suggest braces around empty body There are hundreds of messages like this one, when GSPCA debug is disabled, when compiled with W=1: drivers/media/usb/gspca/spca500.c:725:46: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] Get rid of it, especially as it might actually cause troubles on some places. Cc: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/gspca/gspca.h b/drivers/media/usb/gspca/gspca.h index e3eab82cd4e5..352317d7acdb 100644 --- a/drivers/media/usb/gspca/gspca.h +++ b/drivers/media/usb/gspca/gspca.h @@ -32,7 +32,7 @@ do { \ #define D_USBO 0x00 #define D_V4L2 0x0100 #else -#define PDEBUG(level, fmt, ...) +#define PDEBUG(level, fmt, ...) do {} while(0) #endif #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */