Skip to content

Commit

Permalink
staging: comedi: multiq3: remove warning on braces
Browse files Browse the repository at this point in the history
Remove braces in if statements to make the file exhibit less warnings
when checked using checkpatch.pl.

Signed-off-by: Klaas van Gend <klaas.van.gend@mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Klaas van Gend authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent bacf58a commit 446176a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions drivers/staging/comedi/drivers/multiq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ static int multiq3_ao_insn_read(struct comedi_device *dev,
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;
}
Expand Down Expand Up @@ -262,11 +261,10 @@ static int multiq3_attach(struct comedi_device *dev,
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)
Expand Down Expand Up @@ -332,12 +330,10 @@ static int multiq3_detach(struct comedi_device *dev)
{
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;
}

0 comments on commit 446176a

Please sign in to comment.