[U-Boot] [PATCH] usb: xhci: Fix bool initialization in xhci_bulk_tx

Marek Vasut marek.vasut at gmail.com
Sun Jan 21 16:49:49 UTC 2018


On 01/20/2018 09:37 AM, Gustavo A. R. Silva wrote:
> Bool initializations should use true and false.
> 
> This issue was detected with the help of Coccinelle.
> 
> Signed-off-by: Gustavo A. R. Silva <gustavo at embeddedor.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Marek Vasut <marex at denx.de>

Applied, thanks

> ---
>  drivers/usb/host/xhci-ring.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
> index 579e670..7599c91 100644
> --- a/drivers/usb/host/xhci-ring.c
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -557,7 +557,7 @@ int xhci_bulk_tx(struct usb_device *udev, unsigned long pipe,
>  {
>  	int num_trbs = 0;
>  	struct xhci_generic_trb *start_trb;
> -	bool first_trb = 0;
> +	bool first_trb = false;
>  	int start_cycle;
>  	u32 field = 0;
>  	u32 length_field = 0;
> 


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list