diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-20 18:22:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-20 19:23:02 +0200 |
commit | 213d08b57534aef3c37250335926c5d7e6d825e1 (patch) | |
tree | 8c64397525597f61233aeffdf96ba0abd8d1b0d4 /vm | |
parent | d2c4e5c657b471fb69b224137ccb0a5339ce5252 (diff) |
Fix warning
* vm/vm_map.c (vm_map_lookup): Add braces to fix readability.
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c index 2c8ad60..dc2388d 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -4396,12 +4396,13 @@ kern_return_t vm_map_lookup(var_map, vaddr, fault_type, out_version, prot = entry->protection; - if ((fault_type & (prot)) != fault_type) + if ((fault_type & (prot)) != fault_type) { if ((prot & VM_PROT_NOTIFY) && (fault_type & VM_PROT_WRITE)) { RETURN(KERN_WRITE_PROTECTION_FAILURE); } else { RETURN(KERN_PROTECTION_FAILURE); } + } /* * If this page is not pageable, we have to get |