From d88e3da90f5210f859b19a11a00fa4d539eb7dbd Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Wed, 16 Jul 2014 10:43:40 -0700 Subject: [PATCH] staging: comedi: ni_labpc: checkpatch.pl cleanup (else is not useful) 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 --- drivers/staging/comedi/drivers/ni_labpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_labpc.c b/drivers/staging/comedi/drivers/ni_labpc.c index 3e3f940fa57c..34ffa2e43657 100644 --- a/drivers/staging/comedi/drivers/ni_labpc.c +++ b/drivers/staging/comedi/drivers/ni_labpc.c @@ -1051,9 +1051,9 @@ static int labpc_8255_mmio(int dir, int port, int data, unsigned long iobase) if (dir) { writeb(data, (void __iomem *)(iobase + port)); return 0; - } else { - return readb((void __iomem *)(iobase + port)); } + + return readb((void __iomem *)(iobase + port)); } /* lowlevel write to eeprom/dac */ -- 2.34.1