Remove a bogus KASSERT and improve a comment while I'm nearby.

This commit is contained in:
skrll 2013-03-25 21:58:00 +00:00
parent ba16f82c16
commit 4b34cf126d

View File

@ -341,11 +341,9 @@ vchiq_prepare_bulk_data(VCHIQ_BULK_T *bulk, VCHI_MEM_HANDLE_T memhandle,
pagelist->offset = va & PAGE_MASK;
/*
* busdma coalesce contiguous pages for us
* busdma already coalesces contiguous pages for us
*/
for (int i = 0; i < bi->dmamap->dm_nsegs; i++) {
KASSERT(bi->dmamap->dm_segs[i].ds_len / PAGE_SIZE < PAGE_SIZE);
pagelist->addrs[i] = bi->dmamap->dm_segs[i].ds_addr & ~PAGE_MASK;
pagelist->addrs[i] |= atop(round_page(bi->dmamap->dm_segs[i].ds_len)) - 1;
}