From: Mahati Chamarthy Date: Tue, 23 Sep 2014 15:43:36 +0000 (+0530) Subject: Staging: rtl8192e: rtl8192e: Merge two lines and remove unused variable X-Git-Tag: fixes-for-v3.18-merge-window~15^2~226 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e186cebc94ac06682364b9931f38809ce7b1b5;p=pandora-kernel.git Staging: rtl8192e: rtl8192e: Merge two lines and remove unused variable This patch merges an assignment with an immediately following return of the assigned variable. It also removes variables that became unused due to this transformation. The following Coccinelle semantic patch was used to make this transformation: @r@ identifier ret; identifier f; @@ -ret = +return f(...); -return ret; @@ identifier r.ret; expression e1; type t; @@ ( -t ret = e1; | -t ret; ) ... when != ret when strict Signed-off-by: Mahati Chamarthy Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed