board/ids8247/ids8247.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:11 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:48:06 +0000 (22:48 +0100)
Fix:
ids8247.c: In function 'initdram':
ids8247.c:284:14: warning: variable 'lsize' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
board/ids8247/ids8247.c

index d621833cc117939288b95e8e8ed3c7424adf3633..02db07f1dbbf95367a39d26b7000dd58764515d3 100644 (file)
@@ -281,10 +281,9 @@ phys_size_t initdram (int board_type)
        volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-       long psize, lsize;
+       long psize;
 
        psize = 16 * 1024 * 1024;
-       lsize = 0;
 
        memctl->memc_psrt = CONFIG_SYS_PSRT;
        memctl->memc_mptpr = CONFIG_SYS_MPTPR;