Staging: comedi: cb_pcidio.c: Checkpatch cleanup
authorAndrea Gelmini <andrea.gelmini@gelma.net>
Fri, 26 Feb 2010 09:15:01 +0000 (10:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:43:06 +0000 (16:43 -0800)
WARNING: braces {} are not necessary for single statement blocks
+ if (devpriv->dio_reg_base) {
+ comedi_pci_disable(devpriv->pci_dev);
+ }

WARNING: braces {} are not necessary for single statement blocks
+ for (i = 0; i < thisboard->n_8255; i++) {
+ subdev_8255_cleanup(dev, dev->subdevices + i);
+ }

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/cb_pcidio.c

index 7daad0a..38ccd10 100644 (file)
@@ -283,17 +283,15 @@ static int pcidio_detach(struct comedi_device *dev)
        printk("comedi%d: cb_pcidio: remove\n", dev->minor);
        if (devpriv) {
                if (devpriv->pci_dev) {
-                       if (devpriv->dio_reg_base) {
+                       if (devpriv->dio_reg_base)
                                comedi_pci_disable(devpriv->pci_dev);
-                       }
                        pci_dev_put(devpriv->pci_dev);
                }
        }
        if (dev->subdevices) {
                int i;
-               for (i = 0; i < thisboard->n_8255; i++) {
+               for (i = 0; i < thisboard->n_8255; i++)
                        subdev_8255_cleanup(dev, dev->subdevices + i);
-               }
        }
        return 0;
 }