sysctl: remove an unused variable
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 30 Jan 2012 13:39:59 +0000 (16:39 +0300)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 31 Jan 2012 03:13:46 +0000 (19:13 -0800)
"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>
fs/proc/proc_sysctl.c

index 8dc7f0e46e7e56ee07e6993f1901f776f348bd92..1b1f5b8f4e0f8653091497f2b393a5032a441fd6 100644 (file)
@@ -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;