]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: vt6655: Compress return logic
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 18 Feb 2017 21:22:07 +0000 (02:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:02 +0000 (09:17 +0100)
commit57ce4df98ee10a1d8438599a20c80388802c9488
treee3462142972b20ac61c6bd5d8810ca4633ce7657
parentdff1e0ef86cba81bf3d892036a28e8b889b7e72c
staging: vt6655: Compress return logic

Simplify function returns by merging assignment and return into
one command line.
Found with Coccinelle
@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c