diff options
author | Geyslan G. Bem <geyslan@gmail.com> | 2016-01-25 22:44:47 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-03 13:44:05 -0800 |
commit | bc4beadabf53a26268b12c930557b364fd4e2b28 (patch) | |
tree | b95508d9e61f8d796c990f7d5f217a410c95587c /drivers | |
parent | 9dc3af5ed21fa7ec8ccd315a10b1f9a7771b244b (diff) | |
download | talos-obmc-linux-bc4beadabf53a26268b12c930557b364fd4e2b28.tar.gz talos-obmc-linux-bc4beadabf53a26268b12c930557b364fd4e2b28.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ehci.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |