From: H Hartley Sweeten Date: Mon, 28 Jul 2014 17:27:03 +0000 (-0700) Subject: staging: comedi: ni_tiocmd: tidy up ni_tio_input_cmd() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf2f3a5745f4fbcd9eb80e3bb1406be6d95cf26;p=pandora-kernel.git staging: comedi: ni_tiocmd: tidy up ni_tio_input_cmd() The cmd->start_src is validated in the (*do_cmdtest) before this function is called. All valid trigger sources are handled so the default BUG() case can never occure. For aesthetics, refactor the switch into if/else tests and remove the BUG(). For aesthetics, rename the local variable 'retval' to simply 'ret'. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed