From: Chase Southwood Date: Mon, 18 Aug 2014 03:43:02 +0000 (-0500) Subject: staging: comedi: dt2801: change function return type to void X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1086 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adb7a4777b47f23fdc67a02b195f3ad4b61946ff;p=pandora-kernel.git staging: comedi: dt2801: change function return type to void cppcheck was complaining that the variable 'stat' is being reassigned before the old value is used. Upon inspection, I found that dt2801_writecmd() cannot fail, always returns 0, and most callers already do not bother with assigning its return value anyway, so it makes sense to just change the return type for this function from int to void, and remove the two assignments to 'stat'. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed