]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dgnc: Merge assignment with return
authorRehas Sachdeva <aquannie@gmail.com>
Tue, 20 Sep 2016 07:46:37 +0000 (13:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:41:51 +0000 (13:41 +0200)
commit2b8403887d3bebabb8c3bc8170667608ed88e80f
treecb61ca665b70006b08b6aaa0c191bffa53ef31cf
parent25e29d3dfa6e7fb2db6462a107db4c790886f5e5
staging: dgnc: Merge assignment with return

Instead of storing the return value of a function call into a variable and
then returning it, we can club the two into a single return statement. This
change was made using the following semantic patch by Coccinelle:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c