Changeset 19416


Ignore:
Timestamp:
2010-01-30T16:25:59+01:00 (6 years ago)
Author:
juhosg
Message:

ramips_eth: move memset call out from the loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/drivers/net/ramips.c

    r19414 r19416  
    8989                goto err_cleanup; 
    9090 
     91        memset(priv->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma)); 
    9192        for (i = 0; i < NUM_TX_DESC; i++) { 
    92                 memset(&priv->tx[i], 0, sizeof(struct ramips_tx_dma)); 
    9393                priv->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE; 
    9494                priv->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK); 
Note: See TracChangeset for help on using the changeset viewer.