]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: dgnc: Compress two lines of code into one.
authorHeena Sirwani <heenasirwani@gmail.com>
Mon, 6 Oct 2014 04:49:09 +0000 (10:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:18 +0000 (10:29 +0800)
commit57dde64020133934a89596c446baedf511dac45c
tree67ccc8eedba58474c51bae9cf58e5e991ac51b9c
parentc6ba2e73a674011a09a10b022c02aed7125cff55
Staging: dgnc: Compress two lines of code into one.

The following patch merges two lines of code into one using coccinelle
and removes unused variables. The semantic patch used is as follows:

@@
expression ret;
identifier f;
@@

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

Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_cls.c