From: Somya Anand Date: Fri, 13 Mar 2015 17:23:11 +0000 (+0530) Subject: Staging: i2o: Move assignment out of if statement X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~375 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68f4b7379651b107574a5151ee700a6b361920e2;p=pandora-kernel.git Staging: i2o: Move assignment out of if statement Checkpatch.pl suggest to avoid assignment in if statement. This patch moves assignments out of the if statement and place it before the if statement. This is done using following coccinelle script. @@ expression E1; identifier p; statement S; @@ - if ((p = E1)) + p = E1; + if (p) S Signed-off-by: Somya Anand Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed