From patchwork Wed Jun 27 11:47:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 167627 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 53B78B6FB6 for ; Wed, 27 Jun 2012 21:48:06 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 721F92808D; Wed, 27 Jun 2012 13:48:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i2a7cc3epGqQ; Wed, 27 Jun 2012 13:48:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C5AB28086; Wed, 27 Jun 2012 13:48:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0F4BB28086 for ; Wed, 27 Jun 2012 13:48:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GbsVl2sFqhiG for ; Wed, 27 Jun 2012 13:47:59 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 8283028082 for ; Wed, 27 Jun 2012 13:47:57 +0200 (CEST) Received: by bkty8 with SMTP id y8so808305bkt.3 for ; Wed, 27 Jun 2012 04:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=Shab28sQiERfPP1wRnOPY+JihsUqFzKPqUivRPUz42c=; b=lpe2C5/q2SfVdpI1K9znuTXlOKTenW4gtPcoweFZPszlY6erREHffF/UMmk2dIwEGU eRBzk3Jrm6LjFD58LXjWYtYlDSUBuBSRaFuaCujPTEZYzjDq34owOCIYqPdR/EcRIkSC y09Hf3oHbbwnMueLQxaaJM7k1XL8ZeybgeCWLDbSAopnwlqvYtPw8PGIgbSgXxnaaRhB BcuQkYWnxb8syMeio9wsc/84nUENH+IGFMnaEgEk78Zr9261j+/j05GBFIRyYIxNpYsf NAtmA4bKsrlMEvMlNatCM09WlSjptsSCQBniejlUqOOmYSo40EzmM8uA1qSIfdsWlDmD EF4A== Received: by 10.204.132.80 with SMTP id a16mr197972bkt.82.1340797677253; Wed, 27 Jun 2012 04:47:57 -0700 (PDT) Received: from azuregos.er.corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net. [212.114.252.242]) by mx.google.com with ESMTPS id x23sm54580407bkw.12.2012.06.27.04.47.55 (version=SSLv3 cipher=OTHER); Wed, 27 Jun 2012 04:47:56 -0700 (PDT) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Wed, 27 Jun 2012 13:47:51 +0200 Message-Id: <1340797671-22171-1-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 Subject: [U-Boot] [PATCH] fs/ext2/ext2fs.c: fix warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch fixes following warning: ---8<--- ext2fs.c: In function 'ext2fs_read_file': ext2fs.c:458:19: warning: 'blocknxt' may be used uninitialized in this function [-Wuninitialized] --->8--- The warning was introduced in 436da3cd233e7166b5ce9293dbd28092cf37bcc9. Signed-off-by: Andreas Bießmann cc: Jason Cooper cc: Eric Nelson cc: Thierry Reding --- fs/ext2/ext2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index f1fce48..40b6e6f 100644 --- a/fs/ext2/ext2fs.c +++ b/fs/ext2/ext2fs.c @@ -440,7 +440,7 @@ int ext2fs_read_file /* grab middle blocks in one go */ if (i != pos / blocksize && i != blockcnt - 1 && blockcnt > 3) { int oldblk = blknr; - int blocknxt; + int blocknxt = blknr; while (i < blockcnt - 1) { blocknxt = ext2fs_read_block(node, i + 1); if (blocknxt == (oldblk + 1)) {