Skip to content

Commit

Permalink
media: staging: atomisp: Remove unnecessary return statement in void …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
musicakc authored and mchehab committed Jul 19, 2017
1 parent 5de35c9 commit dd69a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ void hmm_vunmap(ia_css_ptr virt)
return;
}

return hmm_bo_vunmap(bo);
hmm_bo_vunmap(bo);
}

int hmm_pool_register(unsigned int pool_size,
Expand Down

0 comments on commit dd69a3c

Please sign in to comment.