Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ 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);
}

@@ -188,7 +188,7 @@ 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);
}