Merge tag 'f2fs-for-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeu...
[linux-2.6-microblaze.git] / kernel / trace / trace_functions_graph.c
index 4a9c49c..60d6627 100644 (file)
@@ -1336,13 +1336,13 @@ static const struct file_operations graph_depth_fops = {
 
 static __init int init_graph_tracefs(void)
 {
-       struct dentry *d_tracer;
+       int ret;
 
-       d_tracer = tracing_init_dentry();
-       if (IS_ERR(d_tracer))
+       ret = tracing_init_dentry();
+       if (ret)
                return 0;
 
-       trace_create_file("max_graph_depth", 0644, d_tracer,
+       trace_create_file("max_graph_depth", 0644, NULL,
                          NULL, &graph_depth_fops);
 
        return 0;