mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-07 13:53:24 +00:00
staging: dwc2: fix screwup in checking return value
Fix screwup in checking return value from dwc2_is_controller_alive() Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fff04e00f5
commit
54216acee5
@ -2059,7 +2059,7 @@ irqreturn_t dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg)
|
||||
u32 gintsts, dbg_gintsts;
|
||||
irqreturn_t retval = IRQ_NONE;
|
||||
|
||||
if (!dwc2_is_controller_alive(hsotg) < 0) {
|
||||
if (!dwc2_is_controller_alive(hsotg)) {
|
||||
dev_warn(hsotg->dev, "Controller is dead\n");
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user