From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:24 +0000 (-0700) Subject: staging: comedi: pcl724: checkpatch.pl cleanup (else after return) X-Git-Tag: v3.17-rc1~123^2~651 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eeb3b4f9ad9a19f9a7bc07b2963b2ca6cf127060;p=karo-tx-linux.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcl724.c b/drivers/staging/comedi/drivers/pcl724.c index 655bac42f6f0..c7f8eb1cf8de 100644 --- a/drivers/staging/comedi/drivers/pcl724.c +++ b/drivers/staging/comedi/drivers/pcl724.c @@ -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,