summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-29 22:17:52 +0000
committerWolfgang Denk <wd@denx.de>2011-12-02 00:14:40 +0100
commite607a15ddb5024a71b0f9e669fe819c1d8839d53 (patch)
tree425c4602fa6fff0ad15615fd97ad61e49e283c05 /post
parentb0b20d4795260df7bed6882866e6dd3ac12267dd (diff)
post/board/lwmon5/gdc.c: Fix GCC 4.6 build warning
Fix: gdc.c: In function 'gdc_test_reg_one': gdc.c:66:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'post')
-rw-r--r--post/board/lwmon5/gdc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/board/lwmon5/gdc.c b/post/board/lwmon5/gdc.c
index 719194b5d93..6bbd2c236af 100644
--- a/post/board/lwmon5/gdc.c
+++ b/post/board/lwmon5/gdc.c
@@ -63,13 +63,12 @@ const static unsigned long otherpattern = 0x01234567;
/* test write/read og a given LIME Register */
static int gdc_test_reg_one(uint value)
{
- int ret;
uint read_value;
/* write test pattern */
out_be32((void *)GDC_SCRATCH_REG, value);
/* read other location (protect against data lines capacity) */
- ret = in_be32((void *)GDC_RAM_START);
+ in_be32((void *)GDC_RAM_START);
/* verify test pattern */
read_value = in_be32((void *)GDC_SCRATCH_REG);
if (read_value != value) {