staging: comedi: ni_labpc: checkpatch.pl cleanup (else is not useful)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:40 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:34:23 +0000 (13:34 -0700)
Fix the 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/ni_labpc.c

index 3e3f940fa57ceaea9fe537f1d0f6c777e8241865..34ffa2e436576db198ac14fb749c3de4b093c104 100644 (file)
@@ -1051,9 +1051,9 @@ static int labpc_8255_mmio(int dir, int port, int data, unsigned long iobase)
        if (dir) {
                writeb(data, (void __iomem *)(iobase + port));
                return 0;
-       } else {
-               return readb((void __iomem *)(iobase + port));
        }
+
+       return readb((void __iomem *)(iobase + port));
 }
 
 /* lowlevel write to eeprom/dac */