]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit487e1a9d64678a7812c7d41ec3f413f0e227075e
tree8636392bf7d313a34821aa4a2b9c2badf11b1246
parent1ecf4fac2cd0a9ef32fec39ce8eb72724549cafe
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