X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv6%2Fipcomp6.c;h=85bfbc69b2c3dc716618f6e528dfcb63658e96b5;hb=f35279d3f713e5c97b98cbdbf47d98f79942c11f;hp=135383ef538f5a33573d745d17962237af3ae082;hpb=2321fbd2b87539edc1fbfc2e186528a1ef93835f;p=linux-2.6 diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c index 135383ef53..85bfbc69b2 100644 --- a/net/ipv6/ipcomp6.c +++ b/net/ipv6/ipcomp6.c @@ -341,8 +341,7 @@ static void ipcomp6_free_tfms(struct crypto_tfm **tfms) for_each_cpu(cpu) { struct crypto_tfm *tfm = *per_cpu_ptr(tfms, cpu); - if (tfm) - crypto_free_tfm(tfm); + crypto_free_tfm(tfm); } free_percpu(tfms); }