Commit 71a74bd9 authored by Bruce Beare's avatar Bruce Beare Committed by Greg Kroah-Hartman

Staging: comedi: pcmad: Cleanup: Remove unneeded braces

Signed-off-by: default avatarBruce Beare <bbeare1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 90454a28
...@@ -113,9 +113,8 @@ static int pcmad_ai_insn_read(struct comedi_device *dev, ...@@ -113,9 +113,8 @@ static int pcmad_ai_insn_read(struct comedi_device *dev,
data[n] = inb(dev->iobase + PCMAD_LSB); data[n] = inb(dev->iobase + PCMAD_LSB);
data[n] |= (inb(dev->iobase + PCMAD_MSB) << 8); data[n] |= (inb(dev->iobase + PCMAD_MSB) << 8);
if (devpriv->twos_comp) { if (devpriv->twos_comp)
data[n] ^= (1 << (this_board->n_ai_bits - 1)); data[n] ^= (1 << (this_board->n_ai_bits - 1));
}
} }
return n; return n;
...@@ -168,9 +167,8 @@ static int pcmad_detach(struct comedi_device *dev) ...@@ -168,9 +167,8 @@ static int pcmad_detach(struct comedi_device *dev)
{ {
printk("comedi%d: pcmad: remove\n", dev->minor); printk("comedi%d: pcmad: remove\n", dev->minor);
if (dev->irq) { if (dev->irq)
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
}
if (dev->iobase) if (dev->iobase)
release_region(dev->iobase, PCMAD_SIZE); release_region(dev->iobase, PCMAD_SIZE);
......
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