mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-10 20:28:59 +00:00
drivers/net/natsemi.c: fix compile warning
Fix warning: natsemi.c:757: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
9300ab62d9
commit
3e7ec96948
1 changed files with 2 additions and 1 deletions
|
@ -754,7 +754,8 @@ natsemi_send(struct eth_device *dev, volatile void *packet, int length)
|
||||||
{
|
{
|
||||||
u32 i, status = 0;
|
u32 i, status = 0;
|
||||||
u32 tx_status = 0;
|
u32 tx_status = 0;
|
||||||
vu_long *res = (vu_long *)&tx_status;
|
u32 *tx_ptr = &tx_status;
|
||||||
|
vu_long *res = (vu_long *)tx_ptr;
|
||||||
|
|
||||||
/* Stop the transmitter */
|
/* Stop the transmitter */
|
||||||
OUTL(dev, TxOff, ChipCmd);
|
OUTL(dev, TxOff, ChipCmd);
|
||||||
|
|
Loading…
Reference in a new issue