From 25e9398734ebc1ae10028d92ff001b45ce3da67f Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Mon, 25 Aug 2014 15:23:47 -0700 Subject: [PATCH] staging: comedi: usbdux: fix errno (EL2NSYNC) check These should both be checking the -errno. Reported by: coverity Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbdux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/usbdux.c b/drivers/staging/comedi/drivers/usbdux.c index 053bc5090530..ad0faf5c2fad 100644 --- a/drivers/staging/comedi/drivers/usbdux.c +++ b/drivers/staging/comedi/drivers/usbdux.c @@ -513,7 +513,7 @@ static void usbduxsub_ao_isoc_irq(struct urb *urb) dev_err(dev->class_dev, "ao urb resubm failed in int-cont. ret=%d", ret); - if (ret == EL2NSYNC) + if (ret == -EL2NSYNC) dev_err(dev->class_dev, "buggy USB host controller or bug in IRQ handling!\n"); @@ -1294,7 +1294,7 @@ static void usbduxsub_pwm_irq(struct urb *urb) dev_err(dev->class_dev, "pwm urb resubm failed in int-cont. ret=%d", ret); - if (ret == EL2NSYNC) + if (ret == -EL2NSYNC) dev_err(dev->class_dev, "buggy USB host controller or bug in IRQ handling!\n"); -- 2.30.2