Re: [PATCH] usb: dwc2: host: use true/false for boolean

2017-01-12 Thread John Youn
On 1/12/2017 7:53 AM, Nicholas Mc Guire wrote: > For boolean variables true/false is preferred over 1/0 for readability. > > Signed-off-by: Nicholas Mc Guire > --- > Problem reported by scripts/coccinelle/misc/boolinit.cocci: > ./drivers/usb/dwc2/hcd.c:5003:2-24: WARNING:

Re: [PATCH] usb: dwc2: host: use true/false for boolean

2017-01-12 Thread John Youn
On 1/12/2017 7:53 AM, Nicholas Mc Guire wrote: > For boolean variables true/false is preferred over 1/0 for readability. > > Signed-off-by: Nicholas Mc Guire > --- > Problem reported by scripts/coccinelle/misc/boolinit.cocci: > ./drivers/usb/dwc2/hcd.c:5003:2-24: WARNING: Assignment of bool to

[PATCH] usb: dwc2: host: use true/false for boolean

2017-01-12 Thread Nicholas Mc Guire
For boolean variables true/false is preferred over 1/0 for readability. Signed-off-by: Nicholas Mc Guire --- Problem reported by scripts/coccinelle/misc/boolinit.cocci: ./drivers/usb/dwc2/hcd.c:5003:2-24: WARNING: Assignment of bool to 0/1 ./drivers/usb/dwc2/hcd.c:3397:1-21:

[PATCH] usb: dwc2: host: use true/false for boolean

2017-01-12 Thread Nicholas Mc Guire
For boolean variables true/false is preferred over 1/0 for readability. Signed-off-by: Nicholas Mc Guire --- Problem reported by scripts/coccinelle/misc/boolinit.cocci: ./drivers/usb/dwc2/hcd.c:5003:2-24: WARNING: Assignment of bool to 0/1 ./drivers/usb/dwc2/hcd.c:3397:1-21: WARNING: Assignment