There is only one asic on the board so the for () loop in the interrupt
handler to check multiple asics is not needed.
The sanity check of the 'irq' in the interrupt handler is also not needed.
If it _is_ wrong we have bigger problems in the kernel.
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>
struct pcmmio_private *devpriv = dev->private;
struct comedi_subdevice *s = dev->read_subdev;
struct pcmmio_subdev_private *subpriv = s->private;
- int asic, got1 = 0;
+ int got1 = 0;
- for (asic = 0; asic < MAX_ASICS; ++asic) {
- if (irq == dev->irq) {
unsigned long flags;
unsigned triggered = 0;
/* it is an interrupt for ASIC #asic */
* this is an interrupt subdev,
* and it matches this asic!
*/
- if (subpriv->dio.intr.asic == asic) {
+ if (subpriv->dio.intr.asic == 0) {
unsigned long flags;
unsigned oldevents;
}
- }
- }
if (!got1)
return IRQ_NONE; /* interrupt from other source */
return IRQ_HANDLED;