From: Vaishali Thakkar Date: Fri, 19 Sep 2014 05:00:59 +0000 (+0530) Subject: Staging: dgnc: Merge lines and remove unused variable for immediate return X-Git-Tag: fixes-for-v3.18-merge-window~15^2~338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dfe7557809e5867306c7a0614b9d1c6036cbe4d;p=pandora-kernel.git Staging: dgnc: Merge lines and remove unused variable for immediate return This patch merges two lines in a single line if immediate return is found. It also removes unnecessory variable rc as it is no longer needed. This is done using Coccinelle. Semantic patch used for this is as follows: @@ type T; identifier i; identifier f; constant C; @@ - T i; ...when != i when strict ( return -C; | - i = + return f(...); - return i; ) Signed-off-by: Vaishali Thakkar Reviewed-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed