Skip to content
Snippets Groups Projects
Commit 3708e4cd authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
parent d8d8724b
No related branches found
No related tags found
No related merge requests found
......@@ -754,7 +754,8 @@ natsemi_send(struct eth_device *dev, volatile void *packet, int length)
{
u32 i, 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 */
OUTL(dev, TxOff, ChipCmd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment