]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_stc.h: remove unreachable code in RTSI_Output_Bit()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 1 May 2015 21:59:13 +0000 (14:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 May 2015 17:05:11 +0000 (19:05 +0200)
commit0bc52723ca10b851c0c12d5d585e4ec98a62f6b1
treefee2e247f588c01b25d4c40ee3ca1e150381e56b
parent440a194687888226ea524268daaa0affc03dfac5
staging: comedi: ni_stc.h: remove unreachable code in RTSI_Output_Bit()

All the callers of this function check the 'channel' number with
num_configurable_rtsi_channels(). This check can never occure.
Remove it.

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_stc.h