[U-Boot] [PATCH 09/14] post/board/lwmon5/gdc.c: Fix GCC 4.6 build warning
Wolfgang Denk
wd at denx.de
Wed Nov 30 09:17:52 CET 2011
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 at denx.de>
Cc: Stefan Roese <sr at denx.de>
---
total: 0 errors, 0 warnings, 14 lines checked
NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE
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) {
--
1.7.6.4
More information about the U-Boot
mailing list