projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afe0025
)
[IPCOMP6]: don't check vfree() argument for NULL.
author
Jesper Juhl
<jesper.juhl@gmail.com>
Tue, 21 Mar 2006 01:46:29 +0000
(17:46 -0800)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ipcomp6.c
b/net/ipv6/ipcomp6.c
index d511a884dad07504fb73aeb5bf134086aff3c152..6107592fbd8cd7d92fa7ff2aff0f415139ceb8d5 100644
(file)
--- a/
net/ipv6/ipcomp6.c
+++ b/
net/ipv6/ipcomp6.c
@@
-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);