From: Ian Abbott Date: Fri, 31 Aug 2012 19:41:40 +0000 (+0100) Subject: staging: comedi: das08: No need to check insn->n for counter config X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8165b7d49e4dc4c47cf944f136a9c9967beb24e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: das08: No need to check insn->n for counter config There is no need to check the value of `insn->n` is correct in `das08_counter_config()` as the core comedi module will have already checked it. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/das08.c b/drivers/staging/comedi/drivers/das08.c index 9a97bc2aa2f1..4d1d882cfa2a 100644 --- a/drivers/staging/comedi/drivers/das08.c +++ b/drivers/staging/comedi/drivers/das08.c @@ -466,9 +466,6 @@ static int das08_counter_config(struct comedi_device *dev, unsigned long i8254_iobase = dev->iobase + thisboard->i8254_offset; int chan = insn->chanspec; - if (insn->n != 2) - return -EINVAL; - switch (data[0]) { case INSN_CONFIG_SET_COUNTER_MODE: i8254_set_mode(i8254_iobase, 0, chan, data[1]);