From: H Hartley Sweeten Date: Mon, 25 Aug 2014 22:23:47 +0000 (-0700) Subject: staging: comedi: usbdux: fix errno (EL2NSYNC) check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=25e9398734ebc1ae10028d92ff001b45ce3da67f;p=linux-beck.git 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 --- 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");