1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Change if/goto into a while loop.

This commit is contained in:
David Greenman 1996-03-31 23:00:32 +00:00
parent 81f2fe8dca
commit 909e5e0e77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14967
2 changed files with 4 additions and 8 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.82 1996/03/28 04:59:34 dyson Exp $
* $Id: pmap.c,v 1.83 1996/03/28 05:40:58 dyson Exp $
*/
/*
@ -957,10 +957,8 @@ pmap_scan( vm_offset_t sva, vm_offset_t pdnxt, pt_entry_t *ptp) {
ptnxt = &ptp[pdnxt];
ptt = &ptp[sva];
loop:
if ((ptt != ptnxt) && (*ptt == 0)) {
while ((ptt != ptnxt) && (*ptt == 0)) {
ptt++;
goto loop;
}
return ptt - ptp;
}

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.82 1996/03/28 04:59:34 dyson Exp $
* $Id: pmap.c,v 1.83 1996/03/28 05:40:58 dyson Exp $
*/
/*
@ -957,10 +957,8 @@ pmap_scan( vm_offset_t sva, vm_offset_t pdnxt, pt_entry_t *ptp) {
ptnxt = &ptp[pdnxt];
ptt = &ptp[sva];
loop:
if ((ptt != ptnxt) && (*ptt == 0)) {
while ((ptt != ptnxt) && (*ptt == 0)) {
ptt++;
goto loop;
}
return ptt - ptp;
}