diff options
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r-- | kernel/trace/ring_buffer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 960cbf44c844..74a11808c282 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -2845,14 +2845,11 @@ static const struct file_operations rb_simple_fops = { | |||
2845 | static __init int rb_init_debugfs(void) | 2845 | static __init int rb_init_debugfs(void) |
2846 | { | 2846 | { |
2847 | struct dentry *d_tracer; | 2847 | struct dentry *d_tracer; |
2848 | struct dentry *entry; | ||
2849 | 2848 | ||
2850 | d_tracer = tracing_init_dentry(); | 2849 | d_tracer = tracing_init_dentry(); |
2851 | 2850 | ||
2852 | entry = debugfs_create_file("tracing_on", 0644, d_tracer, | 2851 | trace_create_file("tracing_on", 0644, d_tracer, |
2853 | &ring_buffer_flags, &rb_simple_fops); | 2852 | &ring_buffer_flags, &rb_simple_fops); |
2854 | if (!entry) | ||
2855 | pr_warning("Could not create debugfs 'tracing_on' entry\n"); | ||
2856 | 2853 | ||
2857 | return 0; | 2854 | return 0; |
2858 | } | 2855 | } |