staging: most: compress return logic into one line
authorEva Rachel Retuya <eraretuya@gmail.com>
Sun, 21 Feb 2016 07:29:38 +0000 (15:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:34:19 +0000 (22:34 -0800)
commit87f35f02a9193b83657d60695bf981d1a2255fda
treeaee97506c6bbeac5f9fcf5844a940c9c4fd5db87
parent91dd941996e4a626f9467a33e3573bd7c119e914
staging: most: compress return logic into one line

Eliminate local variable 'ret' and modify return statement to contain
the value being returned directly instead of assigning it first to 'ret'
and returning this variable.

Coccinelle semantic patch used:
@@ expression e, 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/most/hdm-dim2/dim2_sysfs.c