usb: xhci: Fix bool initialization in xhci_bulk_tx
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 20 Jan 2018 08:37:31 +0000 (02:37 -0600)
committerMarek Vasut <marex@denx.de>
Thu, 25 Jan 2018 19:59:16 +0000 (20:59 +0100)
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>
drivers/usb/host/xhci-ring.c

index 579e6707eb35a11067458da2f8cf643048b18df8..7599c9183a42781dad520ec93c74761275d729ca 100644 (file)
@@ -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;