diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-08-02 00:07:04 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-16 23:23:10 +0400 |
| commit | acb165135dcf48875e44fe323aa63653785bf01c (patch) | |
| tree | c6a2676a281420e1058ff68cc7e74c634cf69240 | |
| parent | 9e1e2739ef967a3cb60ee73cb70dfdcb0515c8d3 (diff) | |
| download | linux-acb165135dcf48875e44fe323aa63653785bf01c.tar.xz | |
staging: comedi: amplc_dio200: remove unnecessary local variable
The local variable 'irq' is not necessary in dio200_attach(). Just
pass the it->options[1] value directly.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/comedi/drivers/amplc_dio200.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_dio200.c b/drivers/staging/comedi/drivers/amplc_dio200.c index 6f35c83e4789..e99012ee4109 100644 --- a/drivers/staging/comedi/drivers/amplc_dio200.c +++ b/drivers/staging/comedi/drivers/amplc_dio200.c @@ -254,16 +254,13 @@ static const struct dio200_board dio200_isa_boards[] = { static int dio200_attach(struct comedi_device *dev, struct comedi_devconfig *it) { - unsigned int irq; int ret; - irq = it->options[1]; - ret = comedi_request_region(dev, it->options[0], 0x20); if (ret) return ret; - return amplc_dio200_common_attach(dev, irq, 0); + return amplc_dio200_common_attach(dev, it->options[1], 0); } static void dio200_detach(struct comedi_device *dev) |
