From: Frank Mori Hess Date: Mon, 5 Feb 2007 04:04:56 +0000 (+0000) Subject: Only check if parse_insn returns a negative value. X-Git-Tag: r0_7_74~111 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c61968508245e8d7dfe40206157ea2b937947664;p=comedi.git Only check if parse_insn returns a negative value. --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 32f9bf14..23cbdaa9 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -599,11 +599,6 @@ static int do_insnlist_ioctl(comedi_device *dev,void *arg,void *file) } ret = parse_insn(dev,insns+i,data,file); if(ret<0)goto error; - if(ret!=insns[i].n){ - printk("BUG: result of insn != insn.n\n"); - ret=-EINVAL; - goto error; - } if(insns[i].insn&INSN_MASK_READ){ if(copy_to_user(insns[i].data,data, insns[i].n*sizeof(lsampl_t))){