marked (but did not fix =) a couple bugs
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 21 May 2001 04:50:42 +0000 (04:50 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 21 May 2001 04:50:42 +0000 (04:50 +0000)
comedi/kcomedilib/kcomedilib_main.c

index be01e241b6b310c273ae47067a89b5de382747f6..3443c5df698f5fe0972952796b61870f35375938 100644 (file)
@@ -657,6 +657,7 @@ int comedi_do_insn(unsigned int minor,comedi_insn *insn)
 
                if(s->type==COMEDI_SUBD_UNUSED){
                        rt_printk("%d not useable subdevice\n",insn->subdev);
+                       /* XXX no return value is set! ret = ? */
                        goto error;
                }
 
@@ -664,6 +665,7 @@ int comedi_do_insn(unsigned int minor,comedi_insn *insn)
 
                if((ret=check_chanlist(s,1,&insn->chanspec))<0){
                        rt_printk("bad chanspec\n");
+                       /* XXX no return value is set! ret = ? */
                        goto error;
                }
 
@@ -697,7 +699,7 @@ int comedi_do_insn(unsigned int minor,comedi_insn *insn)
                goto error;
        }
 error:
-       
+
        return ret;
 }