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

index a8f6036ad82bc3dffc6711973d6c250ecaa93df4..b63b8181e6e643142b19ba10b16e8121b28836a4 100644 (file)
@@ -673,9 +673,8 @@ static int daqboard2000_8255_cb(int dir, int port, int data,
        if (dir) {
                writew(data, mmio_base + port * 2);
                return 0;
-       } else {
-               return readw(mmio_base + port * 2);
        }
+       return readw(mmio_base + port * 2);
 }
 
 static const void *daqboard2000_find_boardinfo(struct comedi_device *dev,