mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
staging: comedi: das16m1: remove unnecessary 'dev->irq' test
This function can only be called if the irq was sucessfully requested. The dev->irq will always be valid. 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
6f6e144d4d
commit
b70625c684
1 changed files with 0 additions and 5 deletions
|
|
@ -269,11 +269,6 @@ static int das16m1_cmd_exec(struct comedi_device *dev,
|
|||
struct comedi_cmd *cmd = &async->cmd;
|
||||
unsigned int byte, i;
|
||||
|
||||
if (dev->irq == 0) {
|
||||
comedi_error(dev, "irq required to execute comedi_cmd");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* disable interrupts and internal pacer */
|
||||
devpriv->control_state &= ~INTE & ~PACER_MASK;
|
||||
outb(devpriv->control_state, dev->iobase + DAS16M1_INTR_CONTROL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue