From: Wolfgang Denk Date: Tue, 29 Nov 2011 22:17:52 +0000 (+0000) Subject: post/board/lwmon5/gdc.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~106^2~5 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=e607a15ddb5024a71b0f9e669fe819c1d8839d53 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 Cc: Stefan Roese Acked-by: Stefan Roese --- diff --git a/post/board/lwmon5/gdc.c b/post/board/lwmon5/gdc.c index 719194b5d9..6bbd2c236a 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) {