projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69b909
)
net/fec: no need to cast arguments for memcpy
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Thu, 13 Jan 2011 20:34:31 +0000
(21:34 +0100)
committer
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Tue, 15 Feb 2011 08:26:27 +0000
(09:26 +0100)
memcpy takes a const void * as 2nd argument. So the argument is
converted automatically to void * anyhow.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/net/fec.c
patch
|
blob
|
history
diff --git
a/drivers/net/fec.c
b/drivers/net/fec.c
index 2a71373719ae9abde329770132c99c6b888b9e21..3e6e923ca59b3cdfe281559f5be565f9eda6e634 100644
(file)
--- a/
drivers/net/fec.c
+++ b/
drivers/net/fec.c
@@
-284,7
+284,7
@@
fec_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (((unsigned long) bufaddr) & FEC_ALIGNMENT) {
unsigned int index;
index = bdp - fep->tx_bd_base;
- memcpy(fep->tx_bounce[index],
(void *)
skb->data, skb->len);
+ memcpy(fep->tx_bounce[index], skb->data, skb->len);
bufaddr = fep->tx_bounce[index];
}