From 213d08b57534aef3c37250335926c5d7e6d825e1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 20 Oct 2009 18:22:15 +0100 Subject: Fix warning * vm/vm_map.c (vm_map_lookup): Add braces to fix readability. --- vm/vm_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3