]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: whci: fhci: remove comparison to bool
authorGeyslan G. Bem <geyslan@gmail.com>
Wed, 2 Dec 2015 21:45:47 +0000 (18:45 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Dec 2015 16:25:58 +0000 (08:25 -0800)
Get rid of bool explicit comparisons.

Caught by Coccinelle.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fhci-tds.c
drivers/usb/host/whci/qset.c

index 1498061f0aea8cafdfc66f56ad986a1d51c49259..f82ad5df1b0de83f467a1762ea388842a259e092 100644 (file)
@@ -85,7 +85,7 @@ static struct usb_td __iomem *next_bd(struct usb_td __iomem *base,
 
 void fhci_push_dummy_bd(struct endpoint *ep)
 {
-       if (ep->already_pushed_dummy_bd == false) {
+       if (!ep->already_pushed_dummy_bd) {
                u16 td_status = in_be16(&ep->empty_td->status);
 
                out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER);
index 329747398f9ac8aca888d1c7c726f8dadf48c050..5e48a605c71eb3fc9be66a38a612546062fe194a 100644 (file)
@@ -395,7 +395,7 @@ static void urb_dequeue_work(struct work_struct *work)
        struct whc *whc = qset->whc;
        unsigned long flags;
 
-       if (wurb->is_async == true)
+       if (wurb->is_async)
                asl_update(whc, WUSBCMD_ASYNC_UPDATED
                           | WUSBCMD_ASYNC_SYNCED_DB
                           | WUSBCMD_ASYNC_QSET_RM);