OSDN Git Service

media: Staging: media: atomisp: Merge assignment with return
authorSrishti Sharma <srishtishar@gmail.com>
Tue, 12 Sep 2017 14:12:29 +0000 (10:12 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 19:08:04 +0000 (15:08 -0400)
commit34d340b784de0ba77c3c14f26c3ae678f8bb762a
tree8636392bf7d313a34821aa4a2b9c2badf11b1246
parent866af46e6ebbce55dbf6f63ad11a4a9bb3b9abf0
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>
drivers/staging/media/atomisp/i2c/ov5693/ov5693.c
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c