Staging : rtl8188eu : os_dep : Compression of lines for immediate return
authorShraddha Barke <shraddha.6596@gmail.com>
Mon, 27 Jul 2015 13:37:57 +0000 (19:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:05:41 +0000 (16:05 -0700)
commitf523c7d7a66d97d0584182eb3ff4b2425219f9d8
tree3831d394c9c5506ff4d7271fcf835ab2856d7600
parent26589720620e8fe429681f599fdc145c8f57a8c6
Staging : rtl8188eu : os_dep : Compression of lines for immediate return

This patch compresses two lines into a single line if immediate return is
found. Also remove variable ret as it is no longer needed.
Semantic patch used for this is as follows:

@@
type T;
identifier i,f;
constant C;
@@
- T i;
  ...when != i
     when strict
(
  return -C;
|
- i =
+ return
     f(...);
- return i;
)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c