summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMahati Chamarthy <mahati.chamarthy@gmail.com>2014-09-21 17:17:46 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 00:51:03 +0400
commita5310dc66906d2e7dc3ab6688541df1da491c578 (patch)
tree5ed41dcb412967ca7e9f6c01ed72f6104ebd4147 /scripts
parentca7617852df7700deb90bdade6eebb4e879bc5ed (diff)
downloadlinux-a5310dc66906d2e7dc3ab6688541df1da491c578.tar.xz
Staging: rtl8192e: rtl8192e: Merges two lines of code and removes unused variable
This patch merges an assignment with an immediately following return of the assigned variable. It also removes a variable that becomes unused due to this transformation. The following Coccinelle semantic patch was used to make this transformation: @@ expression ret; identifier f; @@ -ret = +return f(...); -return ret; @@ identifier ret; type t; identifier c; @@ -t ret = c; ... when != ret when strict Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions