From: Andrew Morton Date: Fri, 16 Dec 2011 04:49:29 +0000 (+1100) Subject: mm-vmallocc-eliminate-extra-loop-in-pcpu_get_vm_areas-error-path-fix X-Git-Tag: next-20111219~1^2~235 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=88fa7830a0dd36a0082bc0b65823507649a670a7;p=karo-tx-linux.git 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 --- 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);