Remove use of range_unknown
authorDavid Schleef <ds@schleef.org>
Wed, 5 Sep 2001 23:33:40 +0000 (23:33 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 5 Sep 2001 23:33:40 +0000 (23:33 +0000)
comedi/drivers/dt282x.c

index 7cac9dd8993f1162ffb07e7513d5d4b8ab9da654..1cbdac5060c8c4b04e7829bc3463265f8ea1ff85 100644 (file)
@@ -1108,10 +1108,10 @@ static comedi_lrange *ai_range_pgl_table[]={
 static comedi_lrange *opt_ai_range_lkup(int ispgl,int x)
 {
        if(ispgl){
-               if(x<0 || x>=2)return &range_unknown;
+               if(x<0 || x>=2)x=0;
                return ai_range_pgl_table[x];
        }else{
-               if(x<0 || x>=4)return &range_unknown;
+               if(x<0 || x>=4)x=0;
                return ai_range_table[x];
        }
 }
@@ -1123,7 +1123,7 @@ static comedi_lrange *ao_range_table[]={
        &range_bipolar2_5 };
 static comedi_lrange *opt_ao_range_lkup(int x)
 {
-       if(x<0 || x>=5)return &range_unknown;
+       if(x<0 || x>=5)x=0;
        return ao_range_table[x];
 }