* [patch 1/2] sysctl: remove an unused variable
@ 2012-01-30 13:39 Dan Carpenter
2012-01-31 5:20 ` Eric W. Biederman
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2012-01-30 13:39 UTC (permalink / raw)
To: Eric W. Biederman
Cc: Al Viro, Andrew Morton, Lucas De Marchi, linux-kernel, kernel-janitors
"links" is never used, so we can remove it.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 8dc7f0e..1b1f5b8 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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-31 5:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-30 13:39 [patch 1/2] sysctl: remove an unused variable Dan Carpenter
2012-01-31 5:20 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).