]> git.baikalelectronics.ru Git - kernel.git/commit
staging: greybus: arche-platform: compress return logic into one line
authorEva Rachel Retuya <eraretuya@gmail.com>
Wed, 21 Sep 2016 05:07:04 +0000 (13:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:54:47 +0000 (11:54 +0200)
commit77298e991eec43128245417b726835087f5c2393
tree00b984ac139998e4a54134ce567bc5e89adcae5e
parent3256b864cbc48ca2e32b8bc07887bab6a8ab0bed
staging: greybus: arche-platform: compress return logic into one line

Modify return statement to use the value being returned directly instead of
assigning it first to 'ret' and returning this variable. Coccinelle semantic
patch used:

@@
expression e;
local idexpression ret;
@@

-ret =
+return
e;
-return ret;

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-platform.c