Commit 446176a7 authored by Klaas van Gend's avatar Klaas van Gend Committed by Greg Kroah-Hartman

staging: comedi: multiq3: remove warning on braces

Remove braces in if statements to make the file exhibit less warnings
when checked using checkpatch.pl.
Signed-off-by: default avatarKlaas van Gend <klaas.van.gend@mvista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bacf58a8
...@@ -144,9 +144,8 @@ static int multiq3_ao_insn_read(struct comedi_device *dev, ...@@ -144,9 +144,8 @@ static int multiq3_ao_insn_read(struct comedi_device *dev,
int i; int i;
int chan = CR_CHAN(insn->chanspec); 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]; data[i] = devpriv->ao_readback[chan];
}
return i; return i;
} }
...@@ -262,11 +261,10 @@ static int multiq3_attach(struct comedi_device *dev, ...@@ -262,11 +261,10 @@ static int multiq3_attach(struct comedi_device *dev,
dev->iobase = iobase; dev->iobase = iobase;
irq = it->options[1]; irq = it->options[1];
if (irq) { if (irq)
printk("comedi%d: irq = %u ignored\n", dev->minor, irq); printk("comedi%d: irq = %u ignored\n", dev->minor, irq);
} else { else
printk("comedi%d: no irq\n", dev->minor); printk("comedi%d: no irq\n", dev->minor);
}
dev->board_name = "multiq3"; dev->board_name = "multiq3";
result = alloc_subdevices(dev, 5); result = alloc_subdevices(dev, 5);
if (result < 0) if (result < 0)
...@@ -332,12 +330,10 @@ static int multiq3_detach(struct comedi_device *dev) ...@@ -332,12 +330,10 @@ static int multiq3_detach(struct comedi_device *dev)
{ {
printk("comedi%d: multiq3: remove\n", dev->minor); printk("comedi%d: multiq3: remove\n", dev->minor);
if (dev->iobase) { if (dev->iobase)
release_region(dev->iobase, MULTIQ3_SIZE); release_region(dev->iobase, MULTIQ3_SIZE);
} if (dev->irq)
if (dev->irq) {
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
}
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment