usb: dwc3: use true,false for dwc->otg_restart_host
Fix the following coccicheck warning: drivers/usb/dwc3/drd.c:85:3-24: WARNING: Assignment of 0/1 to bool variable drivers/usb/dwc3/drd.c:59:2-23: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
parent
ded0d39975
commit
c685114f63
|
@ -56,7 +56,7 @@ static irqreturn_t dwc3_otg_thread_irq(int irq, void *_dwc)
|
||||||
spin_lock(&dwc->lock);
|
spin_lock(&dwc->lock);
|
||||||
if (dwc->otg_restart_host) {
|
if (dwc->otg_restart_host) {
|
||||||
dwc3_otg_host_init(dwc);
|
dwc3_otg_host_init(dwc);
|
||||||
dwc->otg_restart_host = 0;
|
dwc->otg_restart_host = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_unlock(&dwc->lock);
|
spin_unlock(&dwc->lock);
|
||||||
|
@ -82,7 +82,7 @@ static irqreturn_t dwc3_otg_irq(int irq, void *_dwc)
|
||||||
|
|
||||||
if (dwc->current_otg_role == DWC3_OTG_ROLE_HOST &&
|
if (dwc->current_otg_role == DWC3_OTG_ROLE_HOST &&
|
||||||
!(reg & DWC3_OEVT_DEVICEMODE))
|
!(reg & DWC3_OEVT_DEVICEMODE))
|
||||||
dwc->otg_restart_host = 1;
|
dwc->otg_restart_host = true;
|
||||||
dwc3_writel(dwc->regs, DWC3_OEVT, reg);
|
dwc3_writel(dwc->regs, DWC3_OEVT, reg);
|
||||||
ret = IRQ_WAKE_THREAD;
|
ret = IRQ_WAKE_THREAD;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue