From f14f153eb6647aed667d2c55f580482a73d00c03 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 30 Nov 2011 15:03:08 +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 541494e429b7..a109a13dc8bb 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2474,10 +2474,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