mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02: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
|
|
@ -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 New Issue
Block a user