summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/atomisp/pci/atomisp2
diff options
context:
space:
mode:
authorSrishti Sharma2017-09-12 16:12:29 +0200
committerMauro Carvalho Chehab2017-09-23 21:08:04 +0200
commit34d340b784de0ba77c3c14f26c3ae678f8bb762a (patch)
tree8636392bf7d313a34821aa4a2b9c2badf11b1246 /drivers/staging/media/atomisp/pci/atomisp2
parentmedia: Staging: atomisp: fix alloc_cast.cocci warnings (diff)
downloadkernel-qcow2-linux-34d340b784de0ba77c3c14f26c3ae678f8bb762a.tar.gz
kernel-qcow2-linux-34d340b784de0ba77c3c14f26c3ae678f8bb762a.tar.xz
kernel-qcow2-linux-34d340b784de0ba77c3c14f26c3ae678f8bb762a.zip
media: Staging: media: atomisp: Merge assignment with return
Merge the assignment and the return statements to return the value directly. Done using the following semantic patch by coccinelle. @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Srishti Sharma <srishtishar@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp2')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c
index 11162f595fc7..e6ddfbf0c4e2 100644
--- a/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c
+++ b/drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c
@@ -1168,13 +1168,9 @@ status_err2:
int hmm_bo_page_allocated(struct hmm_buffer_object *bo)
{
- int ret;
-
check_bo_null_return(bo, 0);
- ret = bo->status & HMM_BO_PAGE_ALLOCED;
-
- return ret;
+ return bo->status & HMM_BO_PAGE_ALLOCED;
}
/*