From: Nicholas Mc Guire <[email protected]>

For boolean variables true/false is preferred over 1/0 for readability.

[johnyoun: minor rebase]
Signed-off-by: Nicholas Mc Guire <[email protected]>
Signed-off-by: John Youn <[email protected]>
---
 drivers/usb/dwc2/hcd.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 2617b67dd1df..de24c3e8f5c7 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -2965,7 +2965,7 @@ static void dwc2_process_periodic_channels(struct 
dwc2_hsotg *hsotg)
                qspcavail = (tx_status & TXSTS_QSPCAVAIL_MASK) >>
                            TXSTS_QSPCAVAIL_SHIFT;
                if (qspcavail == 0) {
-                       no_queue_space = 1;
+                       no_queue_space = true;
                        break;
                }
 
@@ -2994,7 +2994,7 @@ static void dwc2_process_periodic_channels(struct 
dwc2_hsotg *hsotg)
                            TXSTS_FSPCAVAIL_SHIFT;
                status = dwc2_queue_transaction(hsotg, qh->channel, fspcavail);
                if (status < 0) {
-                       no_fifo_space = 1;
+                       no_fifo_space = true;
                        break;
                }
 
@@ -3308,7 +3308,7 @@ static void dwc2_wakeup_detected(unsigned long data)
                dwc2_readl(hsotg->regs + HPRT0));
 
        dwc2_hcd_rem_wakeup(hsotg);
-       hsotg->bus_suspended = 0;
+       hsotg->bus_suspended = false;
 
        /* Change to L0 state */
        hsotg->lx_state = DWC2_L0;
@@ -3344,7 +3344,7 @@ static void dwc2_port_suspend(struct dwc2_hsotg *hsotg, 
u16 windex)
        hprt0 |= HPRT0_SUSP;
        dwc2_writel(hprt0, hsotg->regs + HPRT0);
 
-       hsotg->bus_suspended = 1;
+       hsotg->bus_suspended = true;
 
        /*
         * If hibernation is supported, Phy clock will be suspended
@@ -3406,7 +3406,7 @@ static void dwc2_port_resume(struct dwc2_hsotg *hsotg)
        hprt0 = dwc2_read_hprt0(hsotg);
        hprt0 &= ~(HPRT0_RES | HPRT0_SUSP);
        dwc2_writel(hprt0, hsotg->regs + HPRT0);
-       hsotg->bus_suspended = 0;
+       hsotg->bus_suspended = false;
        spin_unlock_irqrestore(&hsotg->lock, flags);
 }
 
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to