Commit 2b191bef authored by Jesper Juhl's avatar Jesper Juhl Committed by David S. Miller
Browse files

[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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent afe00251
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment