projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8d8724
)
drivers/net/natsemi.c: fix compile warning
author
Wolfgang Denk
<wd@denx.de>
Fri, 11 Sep 2009 07:13:58 +0000
(09:13 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Mon, 14 Sep 2009 22:11:02 +0000
(
00:11
+0200)
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>
drivers/net/natsemi.c
patch
|
blob
|
history
diff --git
a/drivers/net/natsemi.c
b/drivers/net/natsemi.c
index
ce12c3b
..
e09da1d
100644
(file)
--- 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);