mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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>
This commit is contained in:
parent
fea478d410
commit
4798178709
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user