Staging: rtl8188eu: os_dep: Compression of lines for immediate return
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sun, 14 Sep 2014 08:16:37 +0000 (13:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:26:01 +0000 (16:26 -0700)
commit1703c17b8a02b7d1dd3080c4ce9d41a83e95a071
treed067c1f3c35acc353e484f50c693dfa91d92ab31
parent16e614e85025d69c87e9ce80b9e1b5238f0f4479
Staging: rtl8188eu: os_dep: Compression of lines for immediate return

This patch compresses two lines in to a single line in file rtw_android.c
if immediate return statement is found. It also removes variable bytes_written as
it is no longer needed.

It is done using script Coccinelle. And coccinelle uses following semantic
patch for this compression function:

@@
expression ret;
identifier f;
@@

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

Signed-off-by: Vaishali Thakkar<vthakkar1994@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/rtw_android.c