mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
GCC4.6: Squash warnings in smsc95xx.c
smsc95xx.c: In function 'smsc95xx_write_hwaddr': smsc95xx.c:380:2: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
a231f04f1a
commit
79ad544009
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ static int smsc95xx_write_hwaddr(struct eth_device *eth)
|
|||
|
||||
/* set hardware address */
|
||||
debug("** %s()\n", __func__);
|
||||
addr_lo = cpu_to_le32(*((u32 *)eth->enetaddr));
|
||||
addr_lo = cpu_to_le32(*eth->enetaddr);
|
||||
addr_hi = cpu_to_le16(*((u16 *)(eth->enetaddr + 4)));
|
||||
ret = smsc95xx_write_reg(dev, ADDRL, addr_lo);
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Reference in a new issue