From 88fa7830a0dd36a0082bc0b65823507649a670a7 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 16 Dec 2011 15:49:29 +1100 Subject: [PATCH] mm-vmallocc-eliminate-extra-loop-in-pcpu_get_vm_areas-error-path-fix remove now-unneeded tests Cc: Kautuk Consul Signed-off-by: Andrew Morton --- mm/vmalloc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 251ebc8e7a26..5738454c8b56 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2476,10 +2476,8 @@ found: err_free: for (area = 0; area < nr_vms; area++) { - if (vas) - kfree(vas[area]); - if (vms) - kfree(vms[area]); + kfree(vas[area]); + kfree(vms[area]); } err_free2: kfree(vas); -- 2.39.5