mm: don't access vm_flags as 'int'
[linux-2.6.git] / include / linux / hugetlb_inline.h
index 6931489..2bb681f 100644 (file)
@@ -7,7 +7,7 @@
 
 static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
 {
-       return vma->vm_flags & VM_HUGETLB;
+       return !!(vma->vm_flags & VM_HUGETLB);
 }
 
 #else