* [PATCH] usb: whci: fhci: remove comparison to bool
@ 2015-12-02 21:45 Geyslan G. Bem
2015-12-07 10:09 ` Peter Senna Tschudin
0 siblings, 1 reply; 2+ messages in thread
From: Geyslan G. Bem @ 2015-12-02 21:45 UTC (permalink / raw)
To: peter.senna; +Cc: Geyslan G. Bem, Greg Kroah-Hartman, linux-usb, linux-kernel
Get rid of bool explicit comparisons.
Caught by Coccinelle.
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
---
drivers/usb/host/fhci-tds.c | 2 +-
drivers/usb/host/whci/qset.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/fhci-tds.c b/drivers/usb/host/fhci-tds.c
index 1498061..f82ad5d 100644
--- a/drivers/usb/host/fhci-tds.c
+++ b/drivers/usb/host/fhci-tds.c
@@ -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);
diff --git a/drivers/usb/host/whci/qset.c b/drivers/usb/host/whci/qset.c
index 3297473..5e48a60 100644
--- a/drivers/usb/host/whci/qset.c
+++ b/drivers/usb/host/whci/qset.c
@@ -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);
--
2.6.3
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] usb: whci: fhci: remove comparison to bool
2015-12-02 21:45 [PATCH] usb: whci: fhci: remove comparison to bool Geyslan G. Bem
@ 2015-12-07 10:09 ` Peter Senna Tschudin
0 siblings, 0 replies; 2+ messages in thread
From: Peter Senna Tschudin @ 2015-12-07 10:09 UTC (permalink / raw)
To: Geyslan G. Bem; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel
On Wed, Dec 2, 2015 at 10:45 PM, Geyslan G. Bem <geyslan@gmail.com> wrote:
> Get rid of bool explicit comparisons.
>
> Caught by Coccinelle.
I would mention the path to the .cocci script, but other than that:
Acked-by: Peter Senna Tschudin <peter.senna@gmail.com>
>
> Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
> ---
> drivers/usb/host/fhci-tds.c | 2 +-
> drivers/usb/host/whci/qset.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/host/fhci-tds.c b/drivers/usb/host/fhci-tds.c
> index 1498061..f82ad5d 100644
> --- a/drivers/usb/host/fhci-tds.c
> +++ b/drivers/usb/host/fhci-tds.c
> @@ -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);
> diff --git a/drivers/usb/host/whci/qset.c b/drivers/usb/host/whci/qset.c
> index 3297473..5e48a60 100644
> --- a/drivers/usb/host/whci/qset.c
> +++ b/drivers/usb/host/whci/qset.c
> @@ -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);
> --
> 2.6.3
>
--
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-07 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-02 21:45 [PATCH] usb: whci: fhci: remove comparison to bool Geyslan G. Bem
2015-12-07 10:09 ` Peter Senna Tschudin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®