Commit 18a8e8c5 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ed221fa
...@@ -156,7 +156,7 @@ static unsigned char dio200_read8(struct comedi_device *dev, ...@@ -156,7 +156,7 @@ static unsigned char dio200_read8(struct comedi_device *dev,
offset <<= thisboard->mainshift; offset <<= thisboard->mainshift;
if (devpriv->io.regtype == io_regtype) if (devpriv->io.regtype == io_regtype)
return inb(devpriv->io.u.iobase + offset); return inb(devpriv->io.u.iobase + offset);
else
return readb(devpriv->io.u.membase + offset); return readb(devpriv->io.u.membase + offset);
} }
...@@ -188,7 +188,7 @@ static unsigned int dio200_read32(struct comedi_device *dev, ...@@ -188,7 +188,7 @@ static unsigned int dio200_read32(struct comedi_device *dev,
offset <<= thisboard->mainshift; offset <<= thisboard->mainshift;
if (devpriv->io.regtype == io_regtype) if (devpriv->io.regtype == io_regtype)
return inl(devpriv->io.u.iobase + offset); return inl(devpriv->io.u.iobase + offset);
else
return readl(devpriv->io.u.membase + offset); return readl(devpriv->io.u.membase + offset);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment