]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_660x: remove BUG_ON(chan >= NUM_PFI_CHANNELS)
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 23 Oct 2012 23:28:14 +0000 (16:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 03:30:29 +0000 (20:30 -0700)
commit4e5a3c24be0144b284be20dc22c83e965ca3a8c3
tree1c8a1f33d932d98d7b5dda420667ce7a49c483c7
parent2c66653a9160f5709817755c1d254235703328f0
staging: comedi: ni_660x: remove BUG_ON(chan >= NUM_PFI_CHANNELS)

This BUG_ON can never happen. The 'chan' value comes from the comedi
core in the insn->chanspec and will always be in range for the subdevice
number of channels (s->n_chan = NUM_PFI_CHANNELS).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_660x.c