diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-05 05:13:17 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:49:44 +0100 |
commit | caf63eb4a00720828c12dfb1ccfd4beda05c850a (patch) | |
tree | 9cb590b1c82660be57575e4b83d320abf75c9d2b /board | |
parent | 55e33279ce8edc25976bc00ecf94f545c33d4de9 (diff) | |
download | u-boot-imx-caf63eb4a00720828c12dfb1ccfd4beda05c850a.zip u-boot-imx-caf63eb4a00720828c12dfb1ccfd4beda05c850a.tar.gz u-boot-imx-caf63eb4a00720828c12dfb1ccfd4beda05c850a.tar.bz2 |
board/freescale/mpc8266ads/mpc8266ads.c: Fix GCC 4.6 build warning
Fix:
mpc8266ads.c: In function 'initdram':
mpc8266ads.c:278:9: warning: variable 'spd_size' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mpc8266ads/mpc8266ads.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/board/freescale/mpc8266ads/mpc8266ads.c b/board/freescale/mpc8266ads/mpc8266ads.c index c7fcfe5..5d48968 100644 --- a/board/freescale/mpc8266ads/mpc8266ads.c +++ b/board/freescale/mpc8266ads/mpc8266ads.c @@ -275,7 +275,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; @@ -292,7 +291,6 @@ phys_size_t initdram(int board_type) i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); 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 */ |