diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-07-16 10:43:19 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-16 13:34:21 -0700 |
commit | c3ba2678d01e983ab47b970bc80ea8e5b3444c54 (patch) | |
tree | 635f8c9b81f289ca119328848fda2ea0778cad96 | |
parent | 18a8e8c538332a7d652f4894925330c131b2ee8c (diff) |
staging: comedi: amplc_pc236: 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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/amplc_pc236.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_pc236.c b/drivers/staging/comedi/drivers/amplc_pc236.c index c9a96ad00559..373739a0041a 100644 --- a/drivers/staging/comedi/drivers/amplc_pc236.c +++ b/drivers/staging/comedi/drivers/amplc_pc236.c @@ -460,11 +460,11 @@ static int pc236_attach(struct comedi_device *dev, struct comedi_devconfig *it) if (!pci_dev) return -EIO; return pc236_pci_common_attach(dev, pci_dev); - } else { - dev_err(dev->class_dev, PC236_DRIVER_NAME - ": BUG! cannot determine board type!\n"); - return -EINVAL; } + + dev_err(dev->class_dev, PC236_DRIVER_NAME + ": BUG! cannot determine board type!\n"); + return -EINVAL; } /* |