]> git.karo-electronics.de Git - karo-tx-linux.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)
commit5a420d15d15b0eb46672578baa268675c63962f7
tree00b984ac139998e4a54134ce567bc5e89adcae5e
parent4f1cbe2a7b4fa50e5ae09e0a564c9dc4101b02fd
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