]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: das16m1: remove unnecessary 'dev->irq' test
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 5 Dec 2013 20:43:27 +0000 (13:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Dec 2013 21:07:15 +0000 (13:07 -0800)
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>
drivers/staging/comedi/drivers/das16m1.c

index 0081ee4f4dc11af36e7f4af551940799dd6d5591..36c2ba5057fa779bf0ebf1c4a8ddfdec7ef0e02c 100644 (file)
@@ -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);