From: Peter Senna Tschudin Date: Sun, 1 Jun 2014 18:12:31 +0000 (-0300) Subject: coccicheck: Add unneeded return variable test X-Git-Tag: omap-for-v3.16/fixes-against-rc1~27^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90829adb4a8ea3b007bd8c63f5b54fddb7972bec;p=pandora-kernel.git coccicheck: Add unneeded return variable test This semantic patch looks for variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Signed-off-by: Peter Senna Tschudin Signed-off-by: Michal Marek --- Reading git-diff-tree failed