summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ipcomp6.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-03-20 17:46:29 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 17:46:29 -0800
commit2b191befe2c47c2f6e96b836a1f6054c9cbc4a0b (patch)
treee777b858f0b41aadec308989c1ae01174b1c083f /net/ipv6/ipcomp6.c
parentafe00251dd9b53d51de91ff0099961f42bbf3754 (diff)
downloadop-kernel-dev-2b191befe2c47c2f6e96b836a1f6054c9cbc4a0b.zip
op-kernel-dev-2b191befe2c47c2f6e96b836a1f6054c9cbc4a0b.tar.gz
[IPCOMP6]: don't check vfree() argument for NULL.
vfree does it's own NULL checking, so checking a pointer before handing it to vfree is pointless. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipcomp6.c')
-rw-r--r--net/ipv6/ipcomp6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c
index d511a88..6107592 100644
--- a/net/ipv6/ipcomp6.c
+++ b/net/ipv6/ipcomp6.c
@@ -286,8 +286,8 @@ static void ipcomp6_free_scratches(void)
for_each_cpu(i) {
void *scratch = *per_cpu_ptr(scratches, i);
- if (scratch)
- vfree(scratch);
+
+ vfree(scratch);
}
free_percpu(scratches);
OpenPOWER on IntegriCloud