Skip to content

Commit

Permalink
Staging: comedi: pcmad: Cleanup: Remove unneeded braces
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Beare <bbeare1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bruce Beare authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 90454a2 commit 71a74bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/comedi/drivers/pcmad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_MSB) << 8);

if (devpriv->twos_comp) {
if (devpriv->twos_comp)
data[n] ^= (1 << (this_board->n_ai_bits - 1));
}
}

return n;
Expand Down Expand Up @@ -168,9 +167,8 @@ static int pcmad_detach(struct comedi_device *dev)
{
printk("comedi%d: pcmad: remove\n", dev->minor);

if (dev->irq) {
if (dev->irq)
free_irq(dev->irq, dev);
}
if (dev->iobase)
release_region(dev->iobase, PCMAD_SIZE);

Expand Down

0 comments on commit 71a74bd

Please sign in to comment.