]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] vm: remove redundant assignment from __pagevec_release_nonlru()
authorTejun Heo <htejun@gmail.com>
Sun, 30 Oct 2005 23:02:40 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:22 +0000 (17:37 -0800)
This patch removes redundant assignment from __pagevec_release_nonlru().
pages_to_free.cold is set to pvec->cold by pagevec_init() call right above
the assignment.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/swap.c

index b89512877ec2645da210c3e43e5a9c7e0f3cfb97..96387e20184ab85971794daeb524ed07de6f8e18 100644 (file)
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -270,7 +270,6 @@ void __pagevec_release_nonlru(struct pagevec *pvec)
        struct pagevec pages_to_free;
 
        pagevec_init(&pages_to_free, pvec->cold);
-       pages_to_free.cold = pvec->cold;
        for (i = 0; i < pagevec_count(pvec); i++) {
                struct page *page = pvec->pages[i];