From: David Schleef Date: Wed, 24 May 2000 21:43:26 +0000 (+0000) Subject: range_type cleanup X-Git-Tag: r44~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8584dde913fc7a51eecae0a1e15c3e5c116ee7b2;p=comedi.git range_type cleanup --- diff --git a/comedi/range.c b/comedi/range.c index bce10dc2..22b844d0 100644 --- 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; }