]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: vt6656: Merges two lines of code and removes unused variable
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Sun, 21 Sep 2014 15:23:52 +0000 (20:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:40:17 +0000 (13:40 -0700)
commitbb66e6f53d8b6f355426f7bd6042bf35d7c01b5a
tree6d7fff3bf5c1f53f4252b799cd573f1d452c219e
parent8c43c45a6f92fe98237aaffdebdb3a7a506da40f
Staging: vt6656: Merges two lines of code and removes unused variable

This patch merges an assignment with an immediately following return of
the assigned variable.The following Coccinelle semantic patch was used to make this transformation:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

A variable that became unused due to this transformation was also removed.

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/key.c