Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 813923b1 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Mike Snitzer
Browse files

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:
//<smpl>
@@
identifier f;
expression e;
@@
void f(...) {
<...
- return
  e;
...>
}
//</smpl>

Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent cfae7529
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*