mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 14:40:12 -04:00
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9ed221faae
commit
18a8e8c538
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user