]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - ipc/shm.c
kernel-doc: detect/prevent duplicate doc section names
[linux-2.6-omap-h63xx.git] / ipc / shm.c
index cc63fae02f064d298689279a46599a8159b01df1..e636910454a9b80ab9216498b09002c86d93e088 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -271,11 +271,9 @@ static struct mempolicy *shm_get_policy(struct vm_area_struct *vma,
 
        if (sfd->vm_ops->get_policy)
                pol = sfd->vm_ops->get_policy(vma, addr);
-       else if (vma->vm_policy) {
+       else if (vma->vm_policy)
                pol = vma->vm_policy;
-               mpol_get(pol);  /* get_vma_policy() expects this */
-       } else
-               pol = current->mempolicy;
+
        return pol;
 }
 #endif