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:
Родитель
fea478d410
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче