Skip to content

Commit

Permalink
dm thin: Remove return statement from void function
Browse files Browse the repository at this point in the history
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: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Amitoj Kaur Chawla authored and Mike Snitzer committed May 5, 2016
1 parent cfae752 commit 813923b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-thin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 813923b

Please sign in to comment.