X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv4%2Fipcomp.c;h=cd810f41af1a71db684a7787bde2bbc8e5d601f7;hb=038e5e2bf2819058fb1b4b52b583bef9ad063356;hp=04a429465665cd8ff0c377eed4d1caf0d40a4a3a;hpb=907d91d708d9999bec0185d630062576ac4181a7;p=linux-2.6-omap-h63xx.git diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 04a42946566..cd810f41af1 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c @@ -290,11 +290,8 @@ static void ipcomp_free_scratches(void) if (!scratches) return; - for_each_possible_cpu(i) { - void *scratch = *per_cpu_ptr(scratches, i); - if (scratch) - vfree(scratch); - } + for_each_possible_cpu(i) + vfree(*per_cpu_ptr(scratches, i)); free_percpu(scratches); }