projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
486fd40
)
[PATCH] remove redundant NULL check before before kfree() in kernel/sysctl.c
author
Jesper Juhl
<juhl-lkml@dif.dk>
Sat, 25 Jun 2005 21:58:48 +0000
(14:58 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:59 +0000
(16:24 -0700)
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sysctl.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sysctl.c
b/kernel/sysctl.c
index 24a4d12d5aa9b40bc8e2ea57dde06f1075e70135..270ee7fadbd83d0d90ee732ffd7904c3b8c34d65 100644
(file)
--- a/
kernel/sysctl.c
+++ b/
kernel/sysctl.c
@@
-1000,8
+1000,7
@@
int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *ol
int error = parse_table(name, nlen, oldval, oldlenp,
newval, newlen, head->ctl_table,
&context);
- if (context)
- kfree(context);
+ kfree(context);
if (error != -ENOTDIR)
return error;
tmp = tmp->next;