* Cleanup, no functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34094 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-17 16:08:22 +00:00
parent 8fd850fca9
commit dcf71e1cae
+4 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2008, Axel Dörfler, [email protected]. All rights reserved.
* Copyright 2002-2009, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
@@ -183,7 +183,7 @@ vm_get_address_space(team_id id)
vm_address_space*
vm_get_kernel_address_space(void)
{
/* we can treat this one a little differently since it can't be deleted */
// we can treat this one a little differently since it can't be deleted
atomic_add(&sKernelAddressSpace->ref_count, 1);
return sKernelAddressSpace;
}
@@ -299,7 +299,7 @@ vm_create_address_space(team_id id, addr_t base, addr_t size,
// initialize the corresponding translation map
status = arch_vm_translation_map_init_map(&addressSpace->translation_map,
kernel);
if (status < B_OK) {
if (status != B_OK) {
free(addressSpace);
return status;
}
@@ -349,7 +349,7 @@ vm_address_space_init_post_sem(void)
{
status_t status = arch_vm_translation_map_init_kernel_map_post_sem(
&sKernelAddressSpace->translation_map);
if (status < B_OK)
if (status != B_OK)
return status;
return B_OK;