projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0926df
)
Silenced warning from gcc 4.1.2
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 19 Apr 2007 19:23:33 +0000
(19:23 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 19 Apr 2007 19:23:33 +0000
(19:23 +0000)
comedi/range.c
patch
|
blob
|
history
diff --git
a/comedi/range.c
b/comedi/range.c
index fd956641ccf2ca2dfe8a0272eba0ddcd0bca6991..34d0aa306b460f2eeebcaa1c50a385edb7790509 100644
(file)
--- 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;