aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ffec
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2016-05-27 22:14:39 +0000
committerIan Lepore <ian@FreeBSD.org>2016-05-27 22:14:39 +0000
commitad5a172c994b96555eef89807cd981ec7308f7d7 (patch)
tree35f421030778ab234f8a5546f470c1f34538d840 /sys/dev/ffec
parent69b913d68f372db40e90b64e00bef01d39bf1b00 (diff)
downloadsrc-ad5a172c994b96555eef89807cd981ec7308f7d7.tar.gz
src-ad5a172c994b96555eef89807cd981ec7308f7d7.zip
Fix erronious mixed use of tx/rx variables/constants in the same expression.
Pointed out by jmcneill; other instances found by grep -iE 'rx.*tx|tx.*rx'
Notes
Notes: svn path=/head/; revision=300878
Diffstat (limited to 'sys/dev/ffec')
-rw-r--r--sys/dev/ffec/if_ffec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c
index e7749a1f0b54..9df29b2a8552 100644
--- a/sys/dev/ffec/if_ffec.c
+++ b/sys/dev/ffec/if_ffec.c
@@ -173,7 +173,7 @@ struct ffec_softc {
struct ffec_hwdesc *txdesc_ring;
bus_addr_t txdesc_ring_paddr;
bus_dma_tag_t txbuf_tag;
- struct ffec_bufmap txbuf_map[RX_DESC_COUNT];
+ struct ffec_bufmap txbuf_map[TX_DESC_COUNT];
uint32_t tx_idx_head;
uint32_t tx_idx_tail;
int txcount;
@@ -896,9 +896,9 @@ ffec_rxfinish_locked(struct ffec_softc *sc)
}
if (produced_empty_buffer) {
- bus_dmamap_sync(sc->rxdesc_tag, sc->txdesc_map, BUS_DMASYNC_PREWRITE);
+ bus_dmamap_sync(sc->rxdesc_tag, sc->rxdesc_map, BUS_DMASYNC_PREWRITE);
WR4(sc, FEC_RDAR_REG, FEC_RDAR_RDAR);
- bus_dmamap_sync(sc->rxdesc_tag, sc->txdesc_map, BUS_DMASYNC_POSTWRITE);
+ bus_dmamap_sync(sc->rxdesc_tag, sc->rxdesc_map, BUS_DMASYNC_POSTWRITE);
}
}