From 7fd9fd6372350dd18990296b7db622026ba82a60 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 19 Apr 2007 19:23:33 +0000 Subject: [PATCH] Silenced warning from gcc 4.1.2 --- comedi/range.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.26.2