From: Amitoj Kaur Chawla Date: Thu, 29 Jun 2017 23:32:50 +0000 (-0400) Subject: media: staging: atomisp: Remove unnecessary return statement in void function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd69a3c1ded8fe477febd3e728e312d9a555695d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git media: staging: atomisp: Remove unnecessary return statement in 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: // @@ identifier f; expression e; @@ void f(...) { <... - return e; ...> } // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c b/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c index 05eeff58a229..de0426b0a1a4 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c @@ -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,