]> git.karo-electronics.de Git - linux-beck.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)
commite2bdb0d833655b09d7ae75b7ca4eafde22fda9a4
treefee2e247f588c01b25d4c40ee3ca1e150381e56b
parent5ecadf8c4fb9a634dd20af2d14b588254f336a88
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