mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
55e33279ce
commit
caf63eb4a0
1 changed files with 0 additions and 2 deletions
|
|
@ -275,7 +275,6 @@ phys_size_t initdram(int board_type)
|
||||||
uint sdam;
|
uint sdam;
|
||||||
uint bsma;
|
uint bsma;
|
||||||
uint sda10;
|
uint sda10;
|
||||||
u_char spd_size;
|
|
||||||
u_char data;
|
u_char data;
|
||||||
u_char cksum;
|
u_char cksum;
|
||||||
int j;
|
int j;
|
||||||
|
|
@ -292,7 +291,6 @@ phys_size_t initdram(int board_type)
|
||||||
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
|
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
|
||||||
|
|
||||||
i2c_read(SDRAM_SPD_ADDR, 0, 1, &data, 1);
|
i2c_read(SDRAM_SPD_ADDR, 0, 1, &data, 1);
|
||||||
spd_size = data;
|
|
||||||
cksum = data;
|
cksum = data;
|
||||||
for (j = 1; j < 64; j++) { /* read only the checksummed bytes */
|
for (j = 1; j < 64; j++) { /* read only the checksummed bytes */
|
||||||
/* note: the I2C address autoincrements when alen == 0 */
|
/* note: the I2C address autoincrements when alen == 0 */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue