staging: comedi: amplc_pc236: checkpatch.pl cleanup (else after return)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:19 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:34:21 +0000 (13:34 -0700)
Fix these checkpatch.pl warnings:

WARNING: else is not generally useful after a break or return

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pc236.c

index c9a96ad005596847ea9f40dcebcfab99c2a5017e..373739a0041a22409c28f636c777412d45e30305 100644 (file)
@@ -460,11 +460,11 @@ static int pc236_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                if (!pci_dev)
                        return -EIO;
                return pc236_pci_common_attach(dev, pci_dev);
-       } else {
-               dev_err(dev->class_dev, PC236_DRIVER_NAME
-                       ": BUG! cannot determine board type!\n");
-               return -EINVAL;
        }
+
+       dev_err(dev->class_dev, PC236_DRIVER_NAME
+               ": BUG! cannot determine board type!\n");
+       return -EINVAL;
 }
 
 /*