Commit 47981787 authored by Dan Carpenter's avatar Dan Carpenter Committed by Eric W. Biederman

sysctl: remove an unused variable

"links" is never used, so we can remove it.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent fea478d4
......@@ -1165,7 +1165,6 @@ struct ctl_table_header *__register_sysctl_table(
const char *path, struct ctl_table *table)
{
struct ctl_table_root *root = set->dir.header.root;
struct ctl_table_header *links = NULL;
struct ctl_table_header *header;
const char *name, *nextname;
struct ctl_dir *dir;
......@@ -1222,7 +1221,6 @@ struct ctl_table_header *__register_sysctl_table(
drop_sysctl_table(&dir->header);
spin_unlock(&sysctl_lock);
fail:
kfree(links);
kfree(header);
dump_stack();
return NULL;
......
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