Tag: 87f35f02a9193b83657d60695bf981d1a2255fda

staging: most: compress return logic into one line

Author: Eva Rachel Retuya <eraretuya@gmail.com> 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 Signed-off-by: Greg Kroah-Hartman — drivers/staging/most/hdm-dim2/dim2_sysfs.c …

Continue reading