dm thin: Remove return statement from void function
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Mon, 11 Apr 2016 06:07:08 +0000 (11:37 +0530)
committerMike Snitzer <snitzer@redhat.com>
Thu, 5 May 2016 19:25:50 +0000 (15:25 -0400)
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>
drivers/md/dm-thin.c

index 92237b6..04e7f3b 100644 (file)
@@ -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);
 }
 
 /*