staging: xgifb: Compress return logic into one line.
authorElise Lennion <elise.lennion@gmail.com>
Mon, 17 Oct 2016 02:17:20 +0000 (00:17 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Oct 2016 08:27:55 +0000 (10:27 +0200)
commitdcb9360e66289d6336f8dbd483babf39ac8e73a5
treeb190b6b46e8e512e5948b27de64da8620589d0eb
parentce439c425b4e3f93e366939837127fcfd7d013e2
staging: xgifb: Compress return logic into one line.

Simplify return logic to avoid unnecessary variable assignments.

Coccinelle was used with this semantic patch:
@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_setmode.c