]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: amplc_dio200: remove unnecessary local variable
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 1 Aug 2014 20:07:04 +0000 (13:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:10 +0000 (12:23 -0700)
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>
drivers/staging/comedi/drivers/amplc_dio200.c

index 6f35c83e47897edb9be6e9db9e5df2e575e03745..e99012ee41094e0d7286661ce4bd647856ea33d2 100644 (file)
@@ -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)