diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-04-18 23:51:44 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-19 00:57:55 +0200 |
commit | 63903ca6af3d9424a0c2b176f927fa7e7ab2ae8e (patch) | |
tree | af0dca981d11cc29b6cb94377bca6b61f1370a0e /net/ipv4/ipcomp.c | |
parent | unaligned access in sk_run_filter() (diff) | |
download | linux-63903ca6af3d9424a0c2b176f927fa7e7ab2ae8e.tar.xz linux-63903ca6af3d9424a0c2b176f927fa7e7ab2ae8e.zip |
[NET]: Remove redundant NULL checks before [kv]free
Redundant NULL check before kfree removal
from net/
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipcomp.c')
-rw-r--r-- | net/ipv4/ipcomp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 04a429465665..cd810f41af1a 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); } |