public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Matthias Fuchs <matthias.fuchs@esd.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] board/esd/dasa_sim/flash.c: Fix GCC 4.6 warning
Date: Thu, 24 Nov 2011 16:39:18 +0100	[thread overview]
Message-ID: <4ECE6526.7070905@esd.eu> (raw)

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
---
 board/esd/dasa_sim/flash.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/board/esd/dasa_sim/flash.c b/board/esd/dasa_sim/flash.c
index d6a7737..e2f2aac 100644
--- a/board/esd/dasa_sim/flash.c
+++ b/board/esd/dasa_sim/flash.c
@@ -44,7 +44,6 @@ unsigned long flash_init (void)
 {
 	unsigned long size_b0;
 	int i;
-	unsigned long base_b0;
 
 	/* Init: no FLASHes known */
 	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
@@ -63,8 +62,6 @@ unsigned long flash_init (void)
 	/* Setup offsets */
 	flash_get_offsets (-size_b0, &flash_info[0]);
 
-	base_b0 = -size_b0;
-
 	/* Monitor protection ON by default */
 	(void)flash_protect(FLAG_PROTECT_SET,
 			    -monitor_flash_len,
-- 
1.6.1

             reply	other threads:[~2011-11-24 15:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24 15:39 Matthias Fuchs [this message]
2011-11-24 17:06 ` [U-Boot] [PATCH] board/esd/dasa_sim/flash.c: Fix GCC 4.6 warning Marek Vasut
2011-11-24 17:30   ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ECE6526.7070905@esd.eu \
    --to=matthias.fuchs@esd.eu \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox