summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dwc2
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2013-11-25 13:42:44 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-03 08:31:08 -0800
commit54216acee5a408411ca23e727a5315ace5acf0c4 (patch)
tree1f2e40612a7df9300e16bf0a56aa1d2fb59258d7 /drivers/staging/dwc2
parentfff04e00f53645c6a1233591cc2d9f3abf7dfac4 (diff)
downloadblackbird-obmc-linux-54216acee5a408411ca23e727a5315ace5acf0c4.tar.gz
blackbird-obmc-linux-54216acee5a408411ca23e727a5315ace5acf0c4.zip
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>
Diffstat (limited to 'drivers/staging/dwc2')
-rw-r--r--drivers/staging/dwc2/hcd_intr.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud