range_type cleanup
authorDavid Schleef <ds@schleef.org>
Wed, 24 May 2000 21:43:26 +0000 (21:43 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 24 May 2000 21:43:26 +0000 (21:43 +0000)
comedi/range.c

index bce10dc292bb766445742338ecb28b920895d497..22b844d01b01c904d17f1d9b9014c424455c3743 100644 (file)
@@ -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;
        }