From: Geyslan G. Bem Date: Tue, 26 Jan 2016 01:44:47 +0000 (-0300) Subject: usb: host: ehci.h: fix single statement macros X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bc4beadabf53a26268b12c930557b364fd4e2b28;p=linux-beck.git usb: host: ehci.h: fix single statement macros Don't use the 'do {} while (0)' wrapper in a single statement macro. Caught by checkpatch: "WARNING: Single statement macros should not use a do {} while (0) loop" Signed-off-by: Geyslan G. Bem Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 484ab1a09166..06e20bc3ebb8 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -247,9 +247,9 @@ struct ehci_hcd { /* one per controller */ /* irq statistics */ #ifdef EHCI_STATS struct ehci_stats stats; -# define COUNT(x) do { (x)++; } while (0) +# define COUNT(x) ((x)++) #else -# define COUNT(x) do {} while (0) +# define COUNT(x) #endif /* debug files */