Fix brokenness I introduced while debugging.
- initialize rxlenmask when 8139C+ - remove meaningless memsets.
This commit is contained in:
parent
b5fa366e57
commit
4b54ec9a22
|
@ -848,6 +848,8 @@ re_attach(struct device *parent, struct device *self, void *aux)
|
|||
|
||||
/* Set RX length mask */
|
||||
|
||||
sc->rtk_rxlenmask = RTK_RDESC_STAT_FRAGLEN;
|
||||
|
||||
if (rtk_read_eeprom(sc, RTK_EE_ID, RTK_EEADDR_LEN1) == 0x8129)
|
||||
addr_len = RTK_EEADDR_LEN1;
|
||||
else
|
||||
|
@ -863,10 +865,6 @@ re_attach(struct device *parent, struct device *self, void *aux)
|
|||
}
|
||||
}
|
||||
|
||||
memset((char *)&sc->rtk_ldata.rtk_rx_mbuf, 0,
|
||||
(RTK_RX_DESC_CNT * sizeof(struct mbuf *)));
|
||||
memset((char *)&sc->rtk_ldata.rtk_tx_mbuf, 0,
|
||||
(RTK_TX_DESC_CNT * sizeof(struct mbuf *)));
|
||||
error = re_allocmem(sc);
|
||||
|
||||
if (error)
|
||||
|
|
Loading…
Reference in New Issue