usb: host: Replace empty define with do while
authorCorentin Labbe <clabbe@baylibre.com>
Wed, 19 Sep 2018 19:48:53 +0000 (19:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 13:03:37 +0000 (15:03 +0200)
commita0ef2bdfa3b1497ac3d0cb348102c87c51f041a9
tree65c28c0ab68945221df9fe957914f87f3a4c932e
parent1906f64f6458f4f7f7b77268a7280c7689f61163
usb: host: Replace empty define with do while

It's dangerous to use empty code define.
Furthermore it lead to the following warning:
"suggest braces around empty body in an « else » statement"

So let's replace emptyness by "do {} while(0)"

Furthermore, as suggested by Joe Perches, rename the macro to INCR.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-timer.c
drivers/usb/host/ehci.h
drivers/usb/host/fotg210-hcd.c
drivers/usb/host/fotg210.h