Changeset 30733


Ignore:
Timestamp:
2012-02-26T11:54:13+01:00 (6 years ago)
Author:
juhosg
Message:

ramips: don't read RAMIPS_RX_CALC_IDX0 register in the loop

File:
1 edited

Legend:

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

    r30732 r30733  
    718718        int max_rx = 16; 
    719719 
     720        rx = ramips_fe_rr(RAMIPS_RX_CALC_IDX0); 
     721 
    720722        while (max_rx) { 
    721723                struct raeth_rx_info *rxi; 
     
    724726                int pktlen; 
    725727 
    726                 rx = (ramips_fe_rr(RAMIPS_RX_CALC_IDX0) + 1) % NUM_RX_DESC; 
     728                rx = (rx + 1) % NUM_RX_DESC; 
    727729 
    728730                rxi = &re->rx_info[rx]; 
Note: See TracChangeset for help on using the changeset viewer.