]> Pileus Git - ~andy/linux/commitdiff
Staging: comedi: ni_mio_cs.c: coding style cleanup
authorDaniel Patrick Johnson <teknotus@teknot.us>
Wed, 7 Oct 2009 23:52:25 +0000 (23:52 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:21:51 +0000 (12:21 -0800)
Signed-off-by: Daniel Patrick Johnson <teknotus@teknot.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/ni_mio_cs.c

index d692f4bb47eaed1bd9930d152e584e0a968ef42a..dc4849a40c97818ba5b20493c218e6586bebb116 100644 (file)
@@ -250,9 +250,8 @@ static int mio_cs_detach(struct comedi_device *dev)
 
        /* PCMCIA layer frees the IO region */
 
-       if (dev->irq) {
+       if (dev->irq)
                free_irq(dev->irq, dev);
-       }
 
        return 0;
 }
@@ -293,9 +292,8 @@ static void cs_detach(struct pcmcia_device *link)
 {
        DPRINTK("cs_detach(link=%p)\n", link);
 
-       if (link->dev_node) {
+       if (link->dev_node)
                cs_release(link);
-       }
 }
 
 static int mio_cs_suspend(struct pcmcia_device *link)
@@ -387,9 +385,8 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                }
                printk("\n");
                printk(" board fingerprint (windowed):");
-               for (i = 0; i < 10; i++) {
+               for (i = 0; i < 10; i++)
                        printk(" 0x%04x", win_in(i));
-               }
                printk("\n");
        }
 #endif