OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
|
history
diff --git
a/net/ipv6/ipcomp6.c
b/net/ipv6/ipcomp6.c
index
d511a88
..
6107592
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);