diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2004-03-01 02:44:33 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2004-03-01 02:44:33 +0000 |
| commit | 30d4dd7ee9c6e52cdf9ee861caf3e6e1ee156507 (patch) | |
| tree | 97ecad7a8f7b34702129ac40b1cde3b7348b526e /sys | |
| parent | 7de87783180b4e5c0ced3e7a897bd6a8d292c14d (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/vm/vm_mmap.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 380934b6176f..3782ff229248 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -284,16 +284,14 @@ mmap(td, uap) lim_max(td->td_proc, RLIMIT_DATA)); PROC_UNLOCK(td->td_proc); } - do { - if (flags & MAP_ANON) { - /* - * Mapping blank space is trivial. - */ - handle = NULL; - maxprot = VM_PROT_ALL; - pos = 0; - break; - } + if (flags & MAP_ANON) { + /* + * Mapping blank space is trivial. + */ + handle = NULL; + maxprot = VM_PROT_ALL; + pos = 0; + } else { /* * Mapping file, get fp for validation. Obtain vnode and make * sure it is of appropriate type. @@ -350,7 +348,7 @@ mmap(td, uap) maxprot |= VM_PROT_WRITE; } handle = (void *)vp; - } while (0); + } /* * Do not allow more then a certain number of vm_map_entry structures |
