mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -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:
parent
d77ac2c487
commit
25e9398734
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue