From 0faaad461547e2412e9b519cd757a99b3ebc1302 Mon Sep 17 00:00:00 2001 From: Kris Borer Date: Tue, 14 Jul 2015 09:28:30 -0400 Subject: [PATCH] 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-format-patch failed