Commit acb16513 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9e1e2739
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment