mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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 <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9dc3af5ed2
commit
bc4beadabf
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue