From: Cristina Opriceana Date: Thu, 12 Mar 2015 02:21:29 +0000 (+0200) Subject: Staging: rtl8192u: Remove unnecessary variable X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~411 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c14378eca6f2f66438799e76845c3f2bbdafb57;p=pandora-kernel.git Staging: rtl8192u: Remove unnecessary variable This patch detects the cases in which a variable is not modified through the code and it is used as a return value. The variable is detected and removed by coccinelle using the following semantic patch: @@ type T; expression expr; identifier r; constant c; @@ -T r = expr; ... when != r when strict -return r; +return expr; Signed-off-by: Cristina Opriceana Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed