diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-04-11 11:37:08 +0530 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-05-05 15:25:50 -0400 |
commit | 813923b1a21b73f3068d89b817a86bea5371108c (patch) | |
tree | 4a976ba38bb6260f73315ed4afab1651210bac1d /drivers/md | |
parent | cfae7529b525c3fa86deb71cf2036659240a865e (diff) |
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: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 92237b6fa8cd..04e7f3be4fad 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); } /* |