summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 16:21:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-03 15:39:39 +0200
commit6a54cd872f50ef3b090fdd53d1b67f5b43e97315 (patch)
treeb444d5905d71128c317b6df54fe9051ff9748794 /kernel/trace
parentde2fadf566cb9277bea22993ed95cc5177280251 (diff)
trace: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 1c80521fd436..a95c5cd28135 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -8604,10 +8604,6 @@ struct dentry *tracing_init_dentry(void)
*/
tr->dir = debugfs_create_automount("tracing", NULL,
trace_automount, NULL);
- if (!tr->dir) {
- pr_warn_once("Could not create debugfs directory 'tracing'\n");
- return ERR_PTR(-ENOMEM);
- }
return NULL;
}