From: Kris Borer Date: Tue, 14 Jul 2015 13:28:30 +0000 (-0400) Subject: usb: move assignment out of if condition X-Git-Tag: omap-for-v4.3/fixes-merge-window~42^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0faaad461547e2412e9b519cd757a99b3ebc1302;p=pandora-kernel.git usb: move assignment out of if condition Fix four occurrences of checkpatch.pl error: ERROR: do not use assignment in if condition The semantic patch that makes this change is: // @@ identifier i; expression E; statement S; constant c; binary operator b; @@ + i = E; if ( - (i = E) + i b c ) S @@ identifier i, i2; expression E1, E2; constant c; @@ + if( E1->i ) { + i2 = E2; + if (i2 < c) { - if( E1->i && (i2 = E2) < c ) { ... - } + } + } // Signed-off-by: Kris Borer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed