mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 15:49:42 -04:00
staging: comedi: usbdux: 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:
committed by
Greg Kroah-Hartman
parent
d77ac2c487
commit
25e9398734
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user