]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: vme: devices: Merges two lines of code and removes unused variable
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Mon, 22 Sep 2014 17:34:13 +0000 (23:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 03:25:29 +0000 (20:25 -0700)
commit255b03451ddbec9f28691dfe01eb80ad63773d5b
treee8928b4884cbe2a2e1f54b721780d724bc4b901c
parent80e98e15ebb01042a02f36baa46b3e8f766c8c76
Staging: vme: devices: 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;

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c