projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f02c6b0
)
range_type cleanup
author
David Schleef
<ds@schleef.org>
Wed, 24 May 2000 21:43:26 +0000
(21:43 +0000)
committer
David Schleef
<ds@schleef.org>
Wed, 24 May 2000 21:43:26 +0000
(21:43 +0000)
comedi/range.c
patch
|
blob
|
history
diff --git
a/comedi/range.c
b/comedi/range.c
index bce10dc292bb766445742338ecb28b920895d497..22b844d01b01c904d17f1d9b9014c424455c3743 100644
(file)
--- a/
comedi/range.c
+++ b/
comedi/range.c
@@
-76,9
+76,9
@@
int do_rangeinfo_ioctl(comedi_device *dev,comedi_rangeinfo *arg)
return -EINVAL;
}
- if(
(it.range_type&0xffff
) != lr->length){
+ if(
RANGE_LENGTH(it.range_type
) != lr->length){
DPRINTK("wrong length %d should be %d (0x%08x)\n",
-
it.range_type&0xffff
,lr->length,it.range_type);
+
RANGE_LENGTH(it.range_type)
,lr->length,it.range_type);
return -EINVAL;
}