OSDN Git Service

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)
commit813923b1a21b73f3068d89b817a86bea5371108c
tree4a976ba38bb6260f73315ed4afab1651210bac1d
parentcfae7529b525c3fa86deb71cf2036659240a865e
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>
drivers/md/dm-thin.c