From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:22 +0000 (-0700) Subject: staging: comedi: daqboard2000: checkpatch.pl cleanup (else after return) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=02efdb3bb0a679c0867e611bb190634cf343e6e6;p=linux-beck.git staging: comedi: daqboard2000: checkpatch.pl cleanup (else after return) Fix these checkpatch.pl warnings: 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/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c index a8f6036ad82b..b63b8181e6e6 100644 --- a/drivers/staging/comedi/drivers/daqboard2000.c +++ b/drivers/staging/comedi/drivers/daqboard2000.c @@ -673,9 +673,8 @@ static int daqboard2000_8255_cb(int dir, int port, int data, if (dir) { writew(data, mmio_base + port * 2); return 0; - } else { - return readw(mmio_base + port * 2); } + return readw(mmio_base + port * 2); } static const void *daqboard2000_find_boardinfo(struct comedi_device *dev,