Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc4beada authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Greg Kroah-Hartman
Browse files

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: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9dc3af5e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -247,9 +247,9 @@ struct ehci_hcd { /* one per controller */
	/* irq statistics */
	/* irq statistics */
#ifdef EHCI_STATS
#ifdef EHCI_STATS
	struct ehci_stats	stats;
	struct ehci_stats	stats;
#	define COUNT(x) do { (x)++; } while (0)
#	define COUNT(x) ((x)++)
#else
#else
#	define COUNT(x) do {} while (0)
#	define COUNT(x)
#endif
#endif


	/* debug files */
	/* debug files */