From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:18 +0000 (-0700) Subject: staging: comedi: amplc_dio200_common: checkpatch.pl cleanup (else after return) X-Git-Tag: v3.17-rc1~123^2~657 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=18a8e8c538332a7d652f4894925330c131b2ee8c;p=karo-tx-linux.git staging: comedi: amplc_dio200_common: checkpatch.pl cleanup (else after return) Fix these checkpatch.pl warnings: WARNING: else is not generally useful after a break or return Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_dio200_common.c b/drivers/staging/comedi/drivers/amplc_dio200_common.c index 3edaa4028da2..2996b1ad3f87 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); } /*