Skip to content

Commit

Permalink
[IPCOMP6]: don't check vfree() argument for NULL.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Mar 21, 2006
1 parent afe0025 commit 2b191be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv6/ipcomp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b191be

Please sign in to comment.