Skip to content
Commit be704e58 authored by Elizabeth Ferdman's avatar Elizabeth Ferdman Committed by Greg Kroah-Hartman
Browse files

staging: sm750fb: compress return logic



Using Coccinelle script, compress return logic to return a value
directly rather than doing an assignment and returning the variable.
Remove unnecessary variable declaration by hand.

Coccinelle script:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: default avatarElizabeth Ferdman <gnudevliz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent efe9bc08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment