From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 1 May 2014 12:51:25 +0200 Subject: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block In-Reply-To: <1398892402-9816-7-git-send-email-swarren@wwwdotorg.org> References: <1398892402-9816-1-git-send-email-swarren@wwwdotorg.org> <1398892402-9816-7-git-send-email-swarren@wwwdotorg.org> Message-ID: <201405011251.25998.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: > From: Stephen Warren > > It's easier to assign values to the variables inside an if statement body > if the assignment and declaration are separate. > > Cc: Przemyslaw Marczak > Cc: Lukasz Majewski > Signed-off-by: Stephen Warren > --- > common/cmd_usb_mass_storage.c | 24 ++++++++++++++++-------- > 1 file changed, 16 insertions(+), 8 deletions(-) This doesn't apply on u-boot-usb/master, sorry. Best regards, Marek Vasut