summaryrefslogtreecommitdiff
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-30 17:39:59 +0400
committerEric W. Biederman <ebiederm@xmission.com>2012-01-31 07:13:46 +0400
commit47981787092aecb87dc3cb2d478455dcfb77516a (patch)
tree92c303f6dce927f7f585193ecfd9c23396587a0d /fs/proc/proc_sysctl.c
parentfea478d4101a4285aa25c5bafaaf4cec35026fe0 (diff)
downloadlinux-47981787092aecb87dc3cb2d478455dcfb77516a.tar.xz
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(
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 @@ fail_put_dir_locked:
drop_sysctl_table(&dir->header);
spin_unlock(&sysctl_lock);
fail:
- kfree(links);
kfree(header);
dump_stack();
return NULL;