Skip to content

Commit

Permalink
sysctl: remove an unused variable
Browse files Browse the repository at this point in the history
"links" is never used, so we can remove it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
  • Loading branch information
Dan Carpenter authored and Eric W. Biederman committed Jan 31, 2012
1 parent fea478d commit 4798178
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4798178

Please sign in to comment.