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:
parent
9ed221faae
commit
18a8e8c538
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue