From: Gustavo A. R. Silva Date: Sat, 20 Jan 2018 08:37:31 +0000 (-0600) Subject: usb: xhci: Fix bool initialization in xhci_bulk_tx X-Git-Tag: v2018.03-rc1~77^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eacccbda431c4eff9073f2b4abfaba88524cd12f;p=oweals%2Fu-boot.git usb: xhci: Fix bool initialization in xhci_bulk_tx Bool initializations should use true and false. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva Cc: Bin Meng Cc: Marek Vasut --- diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 579e6707eb..7599c9183a 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;