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

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

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: 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 aa299845
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -88,14 +88,12 @@ static int pcl724_8255mapped_io(int dir, int port, int data,

	iobase &= 0x0fff;

	if (dir) {
	outb(port + movport, iobase);
	if (dir) {
		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,