[U-Boot] [PATCH 2/2] PPC MPC83xx: Fix MPC8323ERDB build warning
Timur Tabi
timur at tabi.org
Thu Jul 4 14:57:49 CEST 2013
On Fri, Jun 14, 2013 at 3:21 AM, Wolfgang Denk <wd at denx.de> wrote:
> diff --git a/board/freescale/mpc8323erdb/mpc8323erdb.c b/board/freescale/mpc8323erdb/mpc8323erdb.c
> index f29b2f4..533cb08 100644
> --- a/board/freescale/mpc8323erdb/mpc8323erdb.c
> +++ b/board/freescale/mpc8323erdb/mpc8323erdb.c
> @@ -195,7 +195,11 @@ int mac_read_from_eeprom(void)
> printf("\nEEPROM @ 0x%02x read FAILED!!!\n",
> CONFIG_SYS_I2C_EEPROM_ADDR);
> } else {
> - if (crc32(crc, buf, 24) == *(unsigned int *)&buf[24]) {
> + unsigned int crc_buf;
This should be a uint32_t, because you specifically want only four bytes.
If you fix that,
Acked-by: Timur Tabi <timur at tabi.org>
More information about the U-Boot
mailing list