[IPCOMP6]: don't check vfree() argument for NULL.
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 21 Mar 2006 01:46:29 +0000 (17:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:46:29 +0000 (17:46 -0800)
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>
net/ipv6/ipcomp6.c

index d511a884dad07504fb73aeb5bf134086aff3c152..6107592fbd8cd7d92fa7ff2aff0f415139ceb8d5 100644 (file)
@@ -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);