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: firefly_0821_release~176^2~3491^2~651 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eeb3b4f9ad9a19f9a7bc07b2963b2ca6cf127060;p=firefly-linux-kernel-4.4.55.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,