int i;
int chan = CR_CHAN(insn->chanspec);
- for (i = 0; i < insn->n; i++) {
+ for (i = 0; i < insn->n; i++)
data[i] = devpriv->ao_readback[chan];
- }
return i;
}
dev->iobase = iobase;
irq = it->options[1];
- if (irq) {
+ if (irq)
printk("comedi%d: irq = %u ignored\n", dev->minor, irq);
- } else {
+ else
printk("comedi%d: no irq\n", dev->minor);
- }
dev->board_name = "multiq3";
result = alloc_subdevices(dev, 5);
if (result < 0)
{
printk("comedi%d: multiq3: remove\n", dev->minor);
- if (dev->iobase) {
+ if (dev->iobase)
release_region(dev->iobase, MULTIQ3_SIZE);
- }
- if (dev->irq) {
+ if (dev->irq)
free_irq(dev->irq, dev);
- }
return 0;
}