diff options
author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-06-25 14:58:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 16:24:59 -0700 |
commit | 5a6b454f8024bac68495b6cd51615feb0b54baa9 (patch) | |
tree | 5514a66b49478b01c67527bb34b0f16aae4511e7 | |
parent | 486fd404fbc840e28a959d2f2842b6c46ed6b250 (diff) | |
download | op-kernel-dev-5a6b454f8024bac68495b6cd51615feb0b54baa9.zip op-kernel-dev-5a6b454f8024bac68495b6cd51615feb0b54baa9.tar.gz |
[PATCH] remove redundant NULL check before before kfree() in kernel/sysctl.c
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>
-rw-r--r-- | kernel/sysctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 24a4d12..270ee7f 100644 --- 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; |