From: Paul Zimmerman Date: Mon, 25 Nov 2013 21:42:44 +0000 (-0800) Subject: staging: dwc2: fix screwup in checking return value X-Git-Tag: firefly_0821_release~176^2~4489^2~692 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=54216acee5a408411ca23e727a5315ace5acf0c4;p=firefly-linux-kernel-4.4.55.git staging: dwc2: fix screwup in checking return value Fix screwup in checking return value from dwc2_is_controller_alive() Signed-off-by: Paul Zimmerman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dwc2/hcd_intr.c b/drivers/staging/dwc2/hcd_intr.c index e672e6db2943..50e6de54f0f0 100644 --- a/drivers/staging/dwc2/hcd_intr.c +++ b/drivers/staging/dwc2/hcd_intr.c @@ -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; }