]> 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>
Thu, 8 Dec 2011 04:32:10 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:47:54 +0000 (16:47 +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 ccc8b1b082939d49fc65f2a1cdf72e2f274c5b6e..ee3432ed8cd955a474e520834103816bddcfe068 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);