summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-01-20 02:37:31 -0600
committerMarek Vasut <marex@denx.de>2018-01-25 20:59:16 +0100
commiteacccbda431c4eff9073f2b4abfaba88524cd12f (patch)
tree419533891c0fef7effec678dc623952b4b1479b3 /drivers/usb
parentfb4413295c765aa8c013650984dc2d908964c81d (diff)
downloadu-boot-eacccbda431c4eff9073f2b4abfaba88524cd12f.tar.gz
u-boot-eacccbda431c4eff9073f2b4abfaba88524cd12f.tar.bz2
u-boot-eacccbda431c4eff9073f2b4abfaba88524cd12f.zip
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 <gustavo@embeddedor.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-ring.c2
1 files changed, 1 insertions, 1 deletions
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;