mempolicy: clean up minor dead code in queue_pages_test_walk()
[linux-2.6-block.git] / mm / mempolicy.c
index 10a590ee1c89974c353a28aa0c4eb393a375e31b..5e519163c4dcb6873dd1ce184401bb30eca12f4b 100644 (file)
@@ -654,7 +654,6 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end,
 {
        struct vm_area_struct *next, *vma = walk->vma;
        struct queue_pages *qp = walk->private;
-       unsigned long endvma = vma->vm_end;
        unsigned long flags = qp->flags;
 
        /* range check first */
@@ -682,9 +681,6 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end,
            !(flags & MPOL_MF_STRICT))
                return 1;
 
-       if (endvma > end)
-               endvma = end;
-
        /*
         * Check page nodes, and queue pages to move, in the current vma.
         * But if no moving, and no strict checking, the scan can be skipped.