Fix the checkpatch.pl warning: WARNING: else is not generally useful after a break or return
Signed-off-by: H Hartley Sweeten <hswee...@visionengravers.com> Cc: Ian Abbott <abbo...@mev.co.uk> Cc: Greg Kroah-Hartman <gr...@linuxfoundation.org> --- 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 3e3f940..34ffa2e 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 */ -- 1.9.3 _______________________________________________ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel