staging: comedi: usbduxsigma: fix errno (EL2NSYNC) check
These should both be checking the -errno. Reported by: coverity Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1b41976933
commit
3f15f7ccfc
@ -451,7 +451,7 @@ static void usbduxsigma_ao_urb_complete(struct urb *urb)
|
||||
dev_err(dev->class_dev,
|
||||
"%s: urb resubmit failed (%d)\n",
|
||||
__func__, ret);
|
||||
if (ret == EL2NSYNC)
|
||||
if (ret == -EL2NSYNC)
|
||||
dev_err(dev->class_dev,
|
||||
"buggy USB host controller or bug in IRQ handler\n");
|
||||
usbduxsigma_ao_stop(dev, 0); /* w/o unlink */
|
||||
@ -1148,7 +1148,7 @@ static void usbduxsigma_pwm_urb_complete(struct urb *urb)
|
||||
if (ret < 0) {
|
||||
dev_err(dev->class_dev, "%s: urb resubmit failed (%d)\n",
|
||||
__func__, ret);
|
||||
if (ret == EL2NSYNC)
|
||||
if (ret == -EL2NSYNC)
|
||||
dev_err(dev->class_dev,
|
||||
"buggy USB host controller or bug in IRQ handler\n");
|
||||
usbduxsigma_pwm_stop(dev, 0); /* w/o unlink */
|
||||
|
Loading…
Reference in New Issue
Block a user