Staging: comedi: pcmad: Cleanup: Remove unneeded braces
authorBruce Beare <bbeare1@gmail.com>
Fri, 20 Nov 2009 23:46:10 +0000 (15:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:26 +0000 (16:42 -0800)
Signed-off-by: Bruce Beare <bbeare1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/pcmad.c

index 202bfd4829927fa0577f2f7a5e3073de0da74105..787aea28afb8b3d2789dc29893e932ceb20eba8a 100644 (file)
@@ -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;
@@ -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);