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

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/8255_pci.c

index be4c95ee9eb13cc115eefd5c896b02093bcb2ee0..e4cec932aef9a96494b377cd33039213a2f373b1 100644 (file)
@@ -201,9 +201,8 @@ static int pci_8255_mmio(int dir, int port, int data, unsigned long iobase)
        if (dir) {
                writeb(data, mmio_base + port);
                return 0;
-       } else {
-               return readb(mmio_base  + port);
        }
+       return readb(mmio_base  + port);
 }
 
 static int pci_8255_auto_attach(struct comedi_device *dev,
This page took 0.02535 seconds and 5 git commands to generate.