From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:20 +0000 (-0700) Subject: staging: comedi: amplc_pci224: checkpatch.pl cleanup (else after return) X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=34880ec79918879bd6d81f2301b14bf7243f39cf;p=deliverable%2Flinux.git staging: comedi: amplc_pci224: checkpatch.pl cleanup (else after return) Fix this 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 --- diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c index 339c47c1eb97..55f69c5981c4 100644 --- a/drivers/staging/comedi/drivers/amplc_pci224.c +++ b/drivers/staging/comedi/drivers/amplc_pci224.c @@ -1255,9 +1255,8 @@ static int pci224_attach_common(struct comedi_device *dev, dev_err(dev->class_dev, "error! unable to allocate irq %u\n", irq); return ret; - } else { - dev->irq = irq; } + dev->irq = irq; } return 0;