projects
/
openwrt
/
staging
/
ynezz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4ce3b
)
ramips_eth: move memset call out from the loop
author
Gabor Juhos
<juhosg@openwrt.org>
Sat, 30 Jan 2010 15:25:59 +0000
(15:25 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Sat, 30 Jan 2010 15:25:59 +0000
(15:25 +0000)
SVN-Revision: 19416
target/linux/ramips/files/drivers/net/ramips.c
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips.c
b/target/linux/ramips/files/drivers/net/ramips.c
index 23a3fb6f0313ec9d1d0543f9f34ee28755f4ac91..c3cc029b9f19cdf4a3b2712c5655d8132f74e7b9 100644
(file)
--- a/
target/linux/ramips/files/drivers/net/ramips.c
+++ b/
target/linux/ramips/files/drivers/net/ramips.c
@@
-88,8
+88,8
@@
ramips_alloc_dma(struct net_device *dev)
if (!priv->tx)
goto err_cleanup;
+ memset(priv->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma));
for (i = 0; i < NUM_TX_DESC; i++) {
- memset(&priv->tx[i], 0, sizeof(struct ramips_tx_dma));
priv->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE;
priv->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK);
priv->tx[i].txd4 |= TX_DMA_QN(3) | TX_DMA_PN(1);