From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:15 +0000 (-0700) Subject: staging: comedi: 8255_pci: checkpatch.pl cleanup (else after return) X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=c2c99c7fdc99ef8177a3a230b224c7771c4caaf9;p=deliverable%2Flinux.git staging: comedi: 8255_pci: 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_pci.c b/drivers/staging/comedi/drivers/8255_pci.c index be4c95ee9eb1..e4cec932aef9 100644 --- a/drivers/staging/comedi/drivers/8255_pci.c +++ b/drivers/staging/comedi/drivers/8255_pci.c @@ -201,9 +201,8 @@ static int pci_8255_mmio(int dir, int port, int data, unsigned long iobase) if (dir) { writeb(data, mmio_base + port); return 0; - } else { - return readb(mmio_base + port); } + return readb(mmio_base + port); } static int pci_8255_auto_attach(struct comedi_device *dev,