Explorar o código

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>
Amitoj Kaur Chawla %!s(int64=9) %!d(string=hai) anos
pai
achega
813923b1a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/md/dm-thin.c

+ 1 - 1
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);
 	int error = get_pool_io_error_code(pool);
 
 
-	return error_retry_list_with_code(pool, error);
+	error_retry_list_with_code(pool, error);
 }
 }
 
 
 /*
 /*