From: Wolfgang Denk Date: Fri, 11 Sep 2009 07:13:58 +0000 (+0200) Subject: drivers/net/natsemi.c: fix compile warning X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~111 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e7ec96948209750ce82a5f0e3b549dfbddd20de;p=u-boot 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 Cc: Ben Warren --- diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c index ce12c3b626..e09da1d2ae 100644 --- a/drivers/net/natsemi.c +++ b/drivers/net/natsemi.c @@ -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);