Silenced warning from gcc 4.1.2
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 19 Apr 2007 19:23:33 +0000 (19:23 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 19 Apr 2007 19:23:33 +0000 (19:23 +0000)
comedi/range.c

index fd956641ccf2ca2dfe8a0272eba0ddcd0bca6991..34d0aa306b460f2eeebcaa1c50a385edb7790509 100644 (file)
@@ -51,6 +51,7 @@ int do_rangeinfo_ioctl(comedi_device *dev, comedi_rangeinfo *arg)
        int minor,subd,chan;
        comedi_lrange *lr;
        comedi_subdevice *s;
+       comedi_device *query_dev;
 
        if(copy_from_user(&it,arg,sizeof(comedi_rangeinfo)))
                return -EFAULT;
@@ -62,7 +63,7 @@ int do_rangeinfo_ioctl(comedi_device *dev, comedi_rangeinfo *arg)
 
        if(minor > COMEDI_NDEVICES)
                return -EINVAL;
-       comedi_device *query_dev = comedi_devices + minor;
+       query_dev = comedi_devices + minor;
        if(!query_dev->attached) return -EINVAL;
        if(subd>=query_dev->n_subdevices) return -EINVAL;
        s = query_dev->subdevices + subd;