Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm Remove a bog...



details:   https://anonhg.NetBSD.org/src/rev/3b601861ec00
branches:  trunk
changeset: 785701:3b601861ec00
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 25 21:58:00 2013 +0000

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

diffstat:

 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r 8d5ace7b72bd -r 3b601861ec00 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c  Mon Mar 25 21:55:11 2013 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c  Mon Mar 25 21:58:00 2013 +0000
@@ -341,11 +341,9 @@
        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;
        }



Home | Main Index | Thread Index | Old Index