From 8584dde913fc7a51eecae0a1e15c3e5c116ee7b2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 24 May 2000 21:43:26 +0000 Subject: [PATCH] range_type cleanup --- comedi/range.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.26.2