diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-18 10:55:35 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-18 10:55:35 +0000 |
commit | 6c8db85ae4987a6078b8b0fb4add670efe44eeae (patch) | |
tree | 7f3dc55294f7d9403adad92cf6941738b8d687c3 /sys/uvm/uvm_glue.c | |
parent | e9431d60b4064a5db3d4a4b8b3190bc3279e2638 (diff) |
Instead of a silly loop with goto, just use while(1).
Diffstat (limited to 'sys/uvm/uvm_glue.c')
-rw-r--r-- | sys/uvm/uvm_glue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c index 2445a64c641..2af1892345b 100644 --- a/sys/uvm/uvm_glue.c +++ b/sys/uvm/uvm_glue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_glue.c,v 1.45 2006/11/29 12:24:18 miod Exp $ */ +/* $OpenBSD: uvm_glue.c,v 1.46 2007/05/18 10:55:34 art Exp $ */ /* $NetBSD: uvm_glue.c,v 1.44 2001/02/06 19:54:44 eeh Exp $ */ /* @@ -341,9 +341,8 @@ uvm_scheduler(void) /* * Nothing to do, back to sleep */ -loop: - tsleep(&proc0, PVM, "scheduler", 0); - goto loop; + while (1) + tsleep(&proc0, PVM, "scheduler", 0); } /* |