From: Amitoj Kaur Chawla Date: Mon, 11 Apr 2016 06:07:08 +0000 (+0530) Subject: dm thin: Remove return statement from void function X-Git-Tag: v4.7-rc1~155^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=813923b1a21b73f3068d89b817a86bea5371108c;p=thirdparty%2Fkernel%2Flinux.git dm thin: Remove return statement from void function Return statement at the end of a void function is useless. The Coccinelle semantic patch used to make this change is as follows: // @@ identifier f; expression e; @@ void f(...) { <... - return e; ...> } // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 92237b6fa8cd1..04e7f3be4fad1 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -632,7 +632,7 @@ static void error_retry_list(struct pool *pool) { int error = get_pool_io_error_code(pool); - return error_retry_list_with_code(pool, error); + error_retry_list_with_code(pool, error); } /*