From: Frank Mori Hess Date: Mon, 21 May 2001 04:50:42 +0000 (+0000) Subject: marked (but did not fix =) a couple bugs X-Git-Tag: r0_7_59~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b9a1d8eb76ffe1dc4b5f352ceb51176b6f7f4508;p=comedi.git marked (but did not fix =) a couple bugs --- diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index be01e241..3443c5df 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -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; }