From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:16 +0000 (-0700) Subject: staging: comedi: 8255: checkpatch.pl cleanup (else after return) X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8ed43d77b3e63705dfbea921bc6ac78bf8a7f1a7;p=deliverable%2Flinux.git staging: comedi: 8255: checkpatch.pl cleanup (else after return) Fix the checkpatch.pl warning in this file: 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/8255.c b/drivers/staging/comedi/drivers/8255.c index 46113a374133..a33a19622745 100644 --- a/drivers/staging/comedi/drivers/8255.c +++ b/drivers/staging/comedi/drivers/8255.c @@ -102,9 +102,8 @@ static int subdev_8255_io(int dir, int port, int data, unsigned long iobase) if (dir) { outb(data, iobase + port); return 0; - } else { - return inb(iobase + port); } + return inb(iobase + port); } void subdev_8255_interrupt(struct comedi_device *dev,