Browse files

jme: Use RX data's interrupt mask to test interrupt status

Functionally same, semantically better
  • Loading branch information...
1 parent dea2452 commit 31810fb82dcf3f04916d6ded8a9803b99d1549c0 Sepherosa Ziehau committed Apr 19, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 sys/dev/netif/jme/if_jme.c
View
5 sys/dev/netif/jme/if_jme.c
@@ -3175,10 +3175,9 @@ jme_rx_intr(struct jme_softc *sc, uint32_t status)
int r;
for (r = 0; r < sc->jme_rx_ring_cnt; ++r) {
- if (status & jme_rx_status[r].jme_coal) {
- struct jme_rxdata *rdata =
- &sc->jme_cdata.jme_rx_data[r];
+ struct jme_rxdata *rdata = &sc->jme_cdata.jme_rx_data[r];
+ if (status & rdata->jme_rx_coal) {
lwkt_serialize_enter(&rdata->jme_rx_serialize);
jme_rxeof(rdata, -1);
lwkt_serialize_exit(&rdata->jme_rx_serialize);

0 comments on commit 31810fb

Please sign in to comment.