From: H Hartley Sweeten Date: Wed, 5 Aug 2015 17:45:04 +0000 (-0700) Subject: staging: comedi: me4000: return void from ai_round_cmd_args() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~208 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c72c4c6e3ab4e1a280ab21fd2a6063b4d37fd4ff;p=pandora-kernel.git staging: comedi: me4000: return void from ai_round_cmd_args() This function always succeeds. Change the return type to void and remove the unnecessary error check in me4000_ai_do_cmd(). Move the function call in me4000_ai_do_cmd_test() from before Step 1 to Step 3 where the arguments are validated. There is no reason to get the values if the previous steps fail. Rename the function so it has namespace associated with the driver. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed