]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: comedi_fops: remove BUG_ON() in comedi_dev_get_from_board_minor()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 10 Aug 2015 20:14:00 +0000 (13:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:35:49 +0000 (18:35 -0700)
commitc4237a2b59432a6ebf73f813ad9e94ab408bb8f1
treeb4aec18c11164cf8eee2f92fee5fd3349cad5783
parent5104a8988723b405c9e033b7e57267ebdd387d4d
staging: comedi: comedi_fops: remove BUG_ON() in comedi_dev_get_from_board_minor()

This function is only called by comedi_dev_get_from_minor() and the 'minor'
value will always be < COMEDI_NUM_BOARD_MINORS. Remove the unnecessary
BUG_ON().

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/comedi_fops.c