diff options
author | Wolfgang Denk | 2009-09-11 09:13:58 +0200 |
---|---|---|
committer | Wolfgang Denk | 2009-09-15 00:11:02 +0200 |
commit | 3708e4cdb1f1d3d5128cf87be040d7e6b85f60dd (patch) | |
tree | ac87362380cd61b88ba361a3c69af1496f145669 /drivers | |
parent | d8d8724be06df43772162dc344ae20dfa814dc72 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/natsemi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c index ce12c3b6261..e09da1d2ae4 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); |