Fix these checkpatch.pl warnings: WARNING: else is not generally useful after a break or return Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx> Cc: Ian Abbott <abbotti@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregk@xxxxxxxxxxxxxxxxxxx> --- drivers/staging/comedi/drivers/amplc_dio200_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/drivers/amplc_dio200_common.c b/drivers/staging/comedi/drivers/amplc_dio200_common.c index 3edaa40..2996b1a 100644 --- a/drivers/staging/comedi/drivers/amplc_dio200_common.c +++ b/drivers/staging/comedi/drivers/amplc_dio200_common.c @@ -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); } /* -- 1.9.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel