]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-vmallocc-eliminate-extra-loop-in-pcpu_get_vm_areas-error-path-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2011 04:49:29 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:00:07 +0000 (17:00 +1100)
remove now-unneeded tests

Cc: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c

index 251ebc8e7a26bd8ddb41bd4cf174ed8cce40d938..5738454c8b562a5be62e415835fd00488b6ae6c7 100644 (file)
@@ -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);