mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 09:41:54 +09:00
staging: comedi: pcl724: checkpatch.pl cleanup (else after return)
Fix the checkpatch.pl warning: 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
aa2998450b
commit
eeb3b4f9ad
@@ -88,14 +88,12 @@ static int pcl724_8255mapped_io(int dir, int port, int data,
|
||||
|
||||
iobase &= 0x0fff;
|
||||
|
||||
outb(port + movport, iobase);
|
||||
if (dir) {
|
||||
outb(port + movport, iobase);
|
||||
outb(data, iobase + 1);
|
||||
return 0;
|
||||
} else {
|
||||
outb(port + movport, iobase);
|
||||
return inb(iobase + 1);
|
||||
}
|
||||
return inb(iobase + 1);
|
||||
}
|
||||
|
||||
static int pcl724_attach(struct comedi_device *dev,
|
||||
|
||||
Reference in New Issue
Block a user