staging: rtl8712: merge lines and remove unused variable for immediate return
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Mon, 22 Sep 2014 16:33:43 +0000 (22:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 15:14:37 +0000 (08:14 -0700)
commitddcb81e7419baa90fab79dbbb1b983a69a235c91
tree5ad9299b71c0530788888a6d05534e5e790ef26d
parenta988265c61a8e0f4420148c8b62f334b31f49c69
staging: rtl8712: merge lines and remove unused variable for immediate return

This patch merge two lines in a single line if immediate return is found.
Unused variables in each case were removed manually as they are no longer
needed.

This is done using Coccinelle. Semantic patch used for this is as
follows :
@@
expression ret;
identifier f;
@@

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

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_io.c
drivers/staging/rtl8712/rtl871x_mp.c