iwm: fix a KASSERT: s/ds_size/ds_len/.

This commit is contained in:
rpaulo 2015-08-08 20:07:25 +00:00
parent 35adb2b287
commit c2259f45df

View File

@ -163,7 +163,7 @@ iwm_dma_map_mem(void *arg, bus_dma_segment_t *segs, int nsegs, int error)
KASSERT(nsegs <= 2, ("too many DMA segments, %d should be <= 2",
nsegs));
if (nsegs > 1)
KASSERT(segs[1].ds_addr == segs[0].ds_addr + segs[0].ds_size,
KASSERT(segs[1].ds_addr == segs[0].ds_addr + segs[0].ds_len,
("fragmented DMA memory"));
*(bus_addr_t *)arg = segs[0].ds_addr;
}
@ -402,4 +402,3 @@ iwm_free_resp(struct iwm_softc *sc, struct iwm_host_cmd *hcmd)
sc->sc_wantresp = -1;
wakeup(&sc->sc_wantresp);
}