aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-30 08:39:59 -0500
committerEric W. Biederman <ebiederm@xmission.com>2012-01-30 22:13:46 -0500
commit47981787092aecb87dc3cb2d478455dcfb77516a (patch)
tree92c303f6dce927f7f585193ecfd9c23396587a0d /fs/proc/proc_sysctl.c
parentfea478d4101a4285aa25c5bafaaf4cec35026fe0 (diff)
sysctl: remove an unused variable
"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>
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r--fs/proc/proc_sysctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 8dc7f0e46e7e..1b1f5b8f4e0f 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -1165,7 +1165,6 @@ struct ctl_table_header *__register_sysctl_table(
1165 const char *path, struct ctl_table *table) 1165 const char *path, struct ctl_table *table)
1166{ 1166{
1167 struct ctl_table_root *root = set->dir.header.root; 1167 struct ctl_table_root *root = set->dir.header.root;
1168 struct ctl_table_header *links = NULL;
1169 struct ctl_table_header *header; 1168 struct ctl_table_header *header;
1170 const char *name, *nextname; 1169 const char *name, *nextname;
1171 struct ctl_dir *dir; 1170 struct ctl_dir *dir;
@@ -1222,7 +1221,6 @@ fail_put_dir_locked:
1222 drop_sysctl_table(&dir->header); 1221 drop_sysctl_table(&dir->header);
1223 spin_unlock(&sysctl_lock); 1222 spin_unlock(&sysctl_lock);
1224fail: 1223fail:
1225 kfree(links);
1226 kfree(header); 1224 kfree(header);
1227 dump_stack(); 1225 dump_stack();
1228 return NULL; 1226 return NULL;