From adb7a4777b47f23fdc67a02b195f3ad4b61946ff Mon Sep 17 00:00:00 2001 From: Chase Southwood Date: Sun, 17 Aug 2014 22:43:02 -0500 Subject: [PATCH] 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-format-patch failed