summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_map.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-12-10 16:06:11 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-12-10 16:06:11 +0000
commit21934acb9bcca96a2f98f0e85f3315a7160d87a1 (patch)
tree7664812b58041e805c7abd03adece8da796f8047 /sys/uvm/uvm_map.c
parent1b1f417f856247457a17d62517917af932e0b180 (diff)
Don't check/free new_entry here, since it can't have been set. Spotted
by lint. "Probably a bogus cut'n paste." says moid. ok miod@ pedro@
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r--sys/uvm/uvm_map.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index c079dda5df7..b4bbf8b862b 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.74 2005/12/10 11:45:43 miod Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.75 2005/12/10 16:06:10 krw Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -845,9 +845,6 @@ uvm_map_p(map, startp, size, uobj, uoffset, align, flags, p)
error = amap_extend(prev_entry, size);
if (error) {
vm_map_unlock(map);
- if (new_entry) {
- uvm_mapent_free(new_entry);
- }
return (error);
}
}