From: Gabor Juhos Date: Sun, 31 Jan 2010 12:48:46 +0000 (+0000) Subject: ramips_eth: simplify tx descriptor initialization X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=21b06bd2c076c62d678efbf2288a2d4f12fe8aa6;p=openwrt%2Fstaging%2F981213.git ramips_eth: simplify tx descriptor initialization SVN-Revision: 19443 --- diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index 1fd9180a39..3061bccc07 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -88,9 +88,8 @@ ramips_alloc_dma(struct raeth_priv *re) memset(re->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma)); for (i = 0; i < NUM_TX_DESC; i++) { - re->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE; - re->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK); - re->tx[i].txd4 |= TX_DMA_QN(3) | TX_DMA_PN(1); + re->tx[i].txd2 = TX_DMA_LSO | TX_DMA_DONE; + re->tx[i].txd4 = TX_DMA_QN(3) | TX_DMA_PN(1); } /* setup rx ring */