OSDN Git Service

staging: comedi: ni_mio_common: remove BUG_ON(gpct_index ...) checks
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 1 May 2015 22:00:02 +0000 (15:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 May 2015 17:05:17 +0000 (19:05 +0200)
commit3446b08e83eb152fe97c791d16cbc68523a62bce
tree5008fb87776119d09dda90e7a5b0d5580f9d0b4f
parent25e941affe11e258a213bb12e765dfaabd327c57
staging: comedi: ni_mio_common: remove BUG_ON(gpct_index ...) checks

The gpct_index will always be 0 or 1. Remove the unnecessary BUG_ON()
checks.

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