]> git.sur5r.net Git - u-boot/commitdiff
board/sacsng/sacsng.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:15 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:48:22 +0000 (22:48 +0100)
Fix:
sacsng.c: In function 'initdram':
sacsng.c:180:9: warning: variable 'spd_size' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
board/sacsng/sacsng.c

index 09f59a0f0dc0ff00514080e434f29a3dbac255e0..536d7de0e04497dbd3efecccf10783e9503dcf28 100644 (file)
@@ -177,7 +177,6 @@ phys_size_t initdram(int board_type)
        uint sdam;
        uint bsma;
        uint sda10;
-       u_char spd_size;
        u_char data;
        u_char cksum;
        int j;
@@ -192,7 +191,6 @@ phys_size_t initdram(int board_type)
         * Read the SDRAM SPD EEPROM via I2C.
         */
        i2c_read(SDRAM_SPD_ADDR, 0, 1, &data, 1);
-       spd_size = data;
        cksum = data;
        for (j = 1; j < 64; j++) {      /* read only the checksummed bytes */
                /* note: the I2C address autoincrements when alen == 0 */