OSDN Git Service

staging: comedi: pcl816: remove unnecessary 'dev->irq' check
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 19 Feb 2014 17:11:29 +0000 (10:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2014 20:39:38 +0000 (12:39 -0800)
If the dev->irq is not valid the interrupt function will not be hooked
up during the attach. Remove the unnecessary check.

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/pcl816.c

index ab01003..4742bc8 100644 (file)
@@ -370,7 +370,7 @@ static irqreturn_t interrupt_pcl816(int irq, void *d)
        }
 
        outb(0, dev->iobase + PCL816_CLRINT);   /* clear INT request */
-       if (!dev->irq || !devpriv->ai_cmd_running || !devpriv->int816_mode) {
+       if (!devpriv->ai_cmd_running || !devpriv->int816_mode) {
                if (devpriv->irq_was_now_closed) {
                        devpriv->irq_was_now_closed = 0;
                        /*  comedi_error(dev,"last IRQ.."); */