Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47981787 authored by Dan Carpenter's avatar Dan Carpenter Committed by Eric W. Biederman
Browse files

sysctl: remove an unused variable



"links" is never used, so we can remove it.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent fea478d4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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 @@ struct ctl_table_header *__register_sysctl_table(
	drop_sysctl_table(&dir->header);
	spin_unlock(&sysctl_lock);
fail:
	kfree(links);
	kfree(header);
	dump_stack();
	return NULL;