Commit 5a6b454f authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

[PATCH] remove redundant NULL check before before kfree() in kernel/sysctl.c

Signed-off-by: default avatarJesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 486fd404
...@@ -1000,7 +1000,6 @@ int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *ol ...@@ -1000,7 +1000,6 @@ int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *ol
int error = parse_table(name, nlen, oldval, oldlenp, int error = parse_table(name, nlen, oldval, oldlenp,
newval, newlen, head->ctl_table, newval, newlen, head->ctl_table,
&context); &context);
if (context)
kfree(context); kfree(context);
if (error != -ENOTDIR) if (error != -ENOTDIR)
return error; return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment