From 02edd8051e5cb64efcfa17b3c50d0dbea24a2b5d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 29 Mar 2015 22:17:09 +0300 Subject: [PATCH] restorer: Drop redundant VMA_AREA_REGULAR tests We have them in vma_entry_is_private() already. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- pie/restorer.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pie/restorer.c b/pie/restorer.c index c5e44a524..d64fbf09d 100644 --- a/pie/restorer.c +++ b/pie/restorer.c @@ -799,9 +799,6 @@ long __export_restore_task(struct task_restore_args *args) for (i = 0; i < args->nr_vmas; i++) { vma_entry = args->tgt_vmas + i; - if (!vma_entry_is(vma_entry, VMA_AREA_REGULAR)) - continue; - if (!vma_entry_is_private(vma_entry)) continue; @@ -820,9 +817,6 @@ long __export_restore_task(struct task_restore_args *args) for (i = args->nr_vmas - 1; i >= 0; i--) { vma_entry = args->tgt_vmas + i; - if (!vma_entry_is(vma_entry, VMA_AREA_REGULAR)) - continue; - if (!vma_entry_is_private(vma_entry)) continue;