[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>
This commit is contained in:
Jesper Juhl 2006-03-20 17:46:29 -08:00 коммит произвёл David S. Miller
Родитель afe00251dd
Коммит 2b191befe2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -286,8 +286,8 @@ static void ipcomp6_free_scratches(void)
for_each_cpu(i) { for_each_cpu(i) {
void *scratch = *per_cpu_ptr(scratches, i); void *scratch = *per_cpu_ptr(scratches, i);
if (scratch)
vfree(scratch); vfree(scratch);
} }
free_percpu(scratches); free_percpu(scratches);