From: Frank Mori Hess Date: Thu, 19 Apr 2007 19:23:33 +0000 (+0000) Subject: Silenced warning from gcc 4.1.2 X-Git-Tag: r0_7_74~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7fd9fd6372350dd18990296b7db622026ba82a60;p=comedi.git Silenced warning from gcc 4.1.2 --- diff --git a/comedi/range.c b/comedi/range.c index fd956641..34d0aa30 100644 --- a/comedi/range.c +++ b/comedi/range.c @@ -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;