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

index 3edaa4028da245e2d66da6c3dbee3885a66beaba..2996b1ad3f871da0dae352de201d260564648ec9 100644 (file)
@@ -156,8 +156,8 @@ static unsigned char dio200_read8(struct comedi_device *dev,
        offset <<= thisboard->mainshift;
        if (devpriv->io.regtype == io_regtype)
                return inb(devpriv->io.u.iobase + offset);
-       else
-               return readb(devpriv->io.u.membase + offset);
+
+       return readb(devpriv->io.u.membase + offset);
 }
 
 /*
@@ -188,8 +188,8 @@ static unsigned int dio200_read32(struct comedi_device *dev,
        offset <<= thisboard->mainshift;
        if (devpriv->io.regtype == io_regtype)
                return inl(devpriv->io.u.iobase + offset);
-       else
-               return readl(devpriv->io.u.membase + offset);
+
+       return readl(devpriv->io.u.membase + offset);
 }
 
 /*