]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: 8255: checkpatch.pl cleanup (else after return)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:16 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:34:21 +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.c

index 46113a37413324540e1843c3a85bebe13b0f47e4..a33a19622745550ad696b647aeb4a6d25f61c810 100644 (file)
@@ -102,9 +102,8 @@ static int subdev_8255_io(int dir, int port, int data, unsigned long iobase)
        if (dir) {
                outb(data, iobase + port);
                return 0;
-       } else {
-               return inb(iobase + port);
        }
+       return inb(iobase + port);
 }
 
 void subdev_8255_interrupt(struct comedi_device *dev,