ftrace: cleanups

no code changed.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Ingo Molnar
2008-05-12 21:20:46 +02:00
committed by Thomas Gleixner
parent d4c5a2f587
commit 4bf39a9411
2 changed files with 39 additions and 38 deletions

View File

@@ -756,9 +756,11 @@ ftrace_avail_open(struct inode *inode, struct file *file)
ret = seq_open(file, &show_ftrace_seq_ops);
if (!ret) {
struct seq_file *m = file->private_data;
m->private = iter;
} else
} else {
kfree(iter);
}
return ret;
}
@@ -770,6 +772,7 @@ int ftrace_avail_release(struct inode *inode, struct file *file)
seq_release(inode, file);
kfree(iter);
return 0;
}