]> git.sur5r.net Git - u-boot/commitdiff
board/kup/kup4k/kup4k.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Fri, 4 Nov 2011 15:55:34 +0000 (15:55 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:13:09 +0000 (22:13 +0100)
Fix:
kup4k.c: In function 'initdram':
kup4k.c:155:19: warning: variable 'mod' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Klaus Heydeck <heydeck@kieback-peter.de>
board/kup/kup4k/kup4k.c

index 267821c48f5c9fe393f1d4c6fbd8cfc15b6e885f..e1dc8f7cf8444981c553ba429324dd4758f4f1bc 100644 (file)
@@ -152,7 +152,7 @@ phys_size_t initdram(int board_type)
        volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size = 0;
-       uchar *latch,rev,mod,tmp;
+       uchar *latch, rev, tmp;
 
        /*
         * Init ChipSelect #4 (CAN + HW-Latch) to determine Hardware Revision
@@ -164,7 +164,6 @@ phys_size_t initdram(int board_type)
        latch = (uchar *)0x90000200;
        tmp = swapbyte(*latch);
        rev = (tmp & 0xF8) >> 3;
-       mod = (tmp & 0x07);
 
        upmconfig(UPMA, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));