diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-29 22:17:52 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-01 23:14:40 (GMT) |
commit | e607a15ddb5024a71b0f9e669fe819c1d8839d53 (patch) | |
tree | 425c4602fa6fff0ad15615fd97ad61e49e283c05 /post | |
parent | b0b20d4795260df7bed6882866e6dd3ac12267dd (diff) | |
download | u-boot-e607a15ddb5024a71b0f9e669fe819c1d8839d53.tar.xz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/post/board/lwmon5/gdc.c b/post/board/lwmon5/gdc.c index 719194b..6bbd2c2 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) { |