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

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_pci224.c

index 339c47c1eb97d5a9f561f136305474c7497dd270..55f69c5981c4c50ce3f8dde5745c40fdae3d2d78 100644 (file)
@@ -1255,9 +1255,8 @@ static int pci224_attach_common(struct comedi_device *dev,
                        dev_err(dev->class_dev,
                                "error! unable to allocate irq %u\n", irq);
                        return ret;
-               } else {
-                       dev->irq = irq;
                }
+               dev->irq = irq;
        }
 
        return 0;