Re: [PATCH] usb: dwc3: avoid empty-body warning

2016-11-17 Thread Arnd Bergmann
On Thursday, November 17, 2016 1:23:43 PM CET Felipe Balbi wrote: > Arnd Bergmann writes: > > Building with W=1, we get a warning about harmless empty statements: > > > > drivers/usb/dwc3/ep0.c: In function 'dwc3_ep0_handle_intf': > > drivers/usb/dwc3/ep0.c:491:4: error: suggest braces around empt

Re: [PATCH] usb: dwc3: avoid empty-body warning

2016-11-17 Thread Felipe Balbi
Hi, Arnd Bergmann writes: > Building with W=1, we get a warning about harmless empty statements: > > drivers/usb/dwc3/ep0.c: In function 'dwc3_ep0_handle_intf': > drivers/usb/dwc3/ep0.c:491:4: error: suggest braces around empty body in an > 'if' statement [-Werror=empty-body] > > gcc does not w

[PATCH] usb: dwc3: avoid empty-body warning

2016-11-16 Thread Arnd Bergmann
Building with W=1, we get a warning about harmless empty statements: drivers/usb/dwc3/ep0.c: In function 'dwc3_ep0_handle_intf': drivers/usb/dwc3/ep0.c:491:4: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] gcc does not warn about {} here, so maybe use that inst