Staging: comedi: amplc_pc263.c: more coding style fixes
authorKevyn-Alexandre Paré <kevyn.alexandre.pare@gmail.com>
Sat, 26 Sep 2009 02:32:17 +0000 (19:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:21:51 +0000 (12:21 -0800)
Signed-off-by: Kevyn-Alexandre Paré <kevyn.alexandre.pare@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/amplc_pc263.c

index c3e60a36f6c2fb851d0f45011e976bdd5ab08845..15808e95ceabc0714dd5e0576950950e4170d23c 100644 (file)
@@ -292,9 +292,8 @@ static int pc263_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 #endif
        {
                ret = pc263_request_region(dev->minor, iobase, PC263_IO_SIZE);
-               if (ret < 0) {
+               if (ret < 0)
                        return ret;
-               }
        }
        dev->iobase = iobase;
 
@@ -352,21 +351,18 @@ static int pc263_detach(struct comedi_device *dev)
               PC263_DRIVER_NAME);
 
 #ifdef CONFIG_COMEDI_PCI
-       if (devpriv)
+       if (devpriv) {
 #endif
-       {
 #ifdef CONFIG_COMEDI_PCI
                if (devpriv->pci_dev) {
-                       if (dev->iobase) {
+                       if (dev->iobase)
                                comedi_pci_disable(devpriv->pci_dev);
-                       }
                        pci_dev_put(devpriv->pci_dev);
                } else
 #endif
                {
-                       if (dev->iobase) {
+                       if (dev->iobase)
                                release_region(dev->iobase, PC263_IO_SIZE);
-                       }
                }
        }
        if (dev->board_name) {