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( ...@@ -1165,7 +1165,6 @@ struct ctl_table_header *__register_sysctl_table(
const char *path, struct ctl_table *table) const char *path, struct ctl_table *table)
{ {
struct ctl_table_root *root = set->dir.header.root; struct ctl_table_root *root = set->dir.header.root;
struct ctl_table_header *links = NULL;
struct ctl_table_header *header; struct ctl_table_header *header;
const char *name, *nextname; const char *name, *nextname;
struct ctl_dir *dir; struct ctl_dir *dir;
...@@ -1222,7 +1221,6 @@ struct ctl_table_header *__register_sysctl_table( ...@@ -1222,7 +1221,6 @@ struct ctl_table_header *__register_sysctl_table(
drop_sysctl_table(&dir->header); drop_sysctl_table(&dir->header);
spin_unlock(&sysctl_lock); spin_unlock(&sysctl_lock);
fail: fail:
kfree(links);
kfree(header); kfree(header);
dump_stack(); dump_stack();
return NULL; 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