From patchwork Sat Nov 5 15:13:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 123878 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 58CB5B70BB for ; Sun, 6 Nov 2011 02:17:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DDC8F29966; Sat, 5 Nov 2011 16:15:48 +0100 (CET) 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 k4P42uERWwIn; Sat, 5 Nov 2011 16:15:48 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 542B52966A; Sat, 5 Nov 2011 16:13:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D3F8529187 for ; Sat, 5 Nov 2011 16:13:34 +0100 (CET) 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 gLQ9cDTZlmZL for ; Sat, 5 Nov 2011 16:13:34 +0100 (CET) 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-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by theia.denx.de (Postfix) with ESMTP id 3F0C629122 for ; Sat, 5 Nov 2011 16:13:27 +0100 (CET) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 2B54F1C02EFF; Sat, 5 Nov 2011 16:13:24 +0100 (CET) X-Auth-Info: 4wyR6z3z+svx3IF2hdtpit/fXFfkh09hzwMEfdfpkzI= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 23F591C001BD; Sat, 5 Nov 2011 16:13:24 +0100 (CET) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id AA403C913106; Sat, 5 Nov 2011 16:13:23 +0100 (CET) Received: by gemini.denx.de (Postfix, from userid 500) id 9556B1893014; Sat, 5 Nov 2011 16:13:23 +0100 (CET) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Sat, 5 Nov 2011 16:13:15 +0100 Message-Id: <1320505999-9770-19-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1320505999-9770-1-git-send-email-wd@denx.de> References: <1320458160-23136-1-git-send-email-wd@denx.de> <1320505999-9770-1-git-send-email-wd@denx.de> Cc: Jerry Van Baren Subject: [U-Boot] [PATCH 18/22] board/sacsng/sacsng.c: Fix GCC 4.6 build warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix: sacsng.c: In function 'initdram': sacsng.c:180:9: warning: variable 'spd_size' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk Cc: Jerry Van Baren --- board/sacsng/sacsng.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/board/sacsng/sacsng.c b/board/sacsng/sacsng.c index 09f59a0..536d7de 100644 --- a/board/sacsng/sacsng.c +++ b/board/sacsng/sacsng.c @@ -177,7 +177,6 @@ phys_size_t initdram(int board_type) uint sdam; uint bsma; uint sda10; - u_char spd_size; u_char data; u_char cksum; int j; @@ -192,7 +191,6 @@ phys_size_t initdram(int board_type) * Read the SDRAM SPD EEPROM via I2C. */ i2c_read(SDRAM_SPD_ADDR, 0, 1, &data, 1); - spd_size = data; cksum = data; for (j = 1; j < 64; j++) { /* read only the checksummed bytes */ /* note: the I2C address autoincrements when alen == 0 */