From: H Hartley Sweeten Date: Wed, 19 Feb 2014 17:11:29 +0000 (-0700) Subject: staging: comedi: pcl816: remove unnecessary 'dev->irq' check X-Git-Tag: firefly_0821_release~176^2~4193^2~915 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf6e48e87c6df4a0a409d0bb7017095aa8da1504;p=firefly-linux-kernel-4.4.55.git staging: comedi: pcl816: remove unnecessary 'dev->irq' check 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c index ab0100304732..4742bc8f3aa4 100644 --- a/drivers/staging/comedi/drivers/pcl816.c +++ b/drivers/staging/comedi/drivers/pcl816.c @@ -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.."); */