From c61968508245e8d7dfe40206157ea2b937947664 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 5 Feb 2007 04:04:56 +0000 Subject: [PATCH] Only check if parse_insn returns a negative value. --- comedi/comedi_fops.c | 5 ----- 1 file changed, 5 deletions(-) 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))){ -- 2.26.2