]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: vt6656: Merge two lines of code into one
authorRajbinder Brar <brar.rajbinder@gmail.com>
Tue, 23 Sep 2014 04:46:17 +0000 (10:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:42:54 +0000 (13:42 -0700)
commitaa33c93e96eba48f29213a01abc9f63c3af14378
tree248e4ee5c585faf877d83b79a04e0cb02033d7f9
parentfc3df14d0edc866bf1d205d0816b4da5dd6a6858
Staging: vt6656: Merge two lines of code into one

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: Rajbinder Brar <brar.rajbinder@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rf.c