media: staging: atomisp: Remove unnecessary return statement in void function
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 29 Jun 2017 23:32:50 +0000 (19:32 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 20:21:11 +0000 (16:21 -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: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c

index 05eeff58a2297ba1ded091c83ca9caa858694124..de0426b0a1a44779e3eadfb426493d7bb2c66291 100644 (file)
@@ -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,