]> err.no Git - linux-2.6/blobdiff - ipc/shm.c
eeepc-laptop: add base driver
[linux-2.6] / ipc / shm.c
index 8d1b2c468cc4077ea46ae7c508c9a9840e3bc662..e636910454a9b80ab9216498b09002c86d93e088 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -271,10 +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 */
-       }
+
        return pol;
 }
 #endif