Author: jhibbits
Date: Mon Mar 30 16:32:55 2020
New Revision: 359445
URL: https://svnweb.freebsd.org/changeset/base/359445

Log:
  powerpc/pmap: Replace a logical TAILQ_FOREACH_SAFE with the real thing
  
  No functional change, just cleanup.

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c       Mon Mar 30 16:24:05 2020        
(r359444)
+++ head/sys/powerpc/booke/pmap.c       Mon Mar 30 16:32:55 2020        
(r359445)
@@ -1597,9 +1597,7 @@ mmu_booke_remove_all(mmu_t mmu, vm_page_t m)
        uint8_t hold_flag;
 
        rw_wlock(&pvh_global_lock);
-       for (pv = TAILQ_FIRST(&m->md.pv_list); pv != NULL; pv = pvn) {
-               pvn = TAILQ_NEXT(pv, pv_link);
-
+       TAILQ_FOREACH_SAFE(pv, &m->md.pv_list, pv_link, pvn) {
                PMAP_LOCK(pv->pv_pmap);
                hold_flag = PTBL_HOLD_FLAG(pv->pv_pmap);
                pte_remove(mmu, pv->pv_pmap, pv->pv_va, hold_flag);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to