MIPS: TXX9: use IS_ENABLED() macro
[pandora-kernel.git] / kernel / trace / trace_stat.c
index 96cffb2..847f88a 100644 (file)
@@ -307,6 +307,8 @@ static int tracing_stat_init(void)
        struct dentry *d_tracing;
 
        d_tracing = tracing_init_dentry();
+       if (!d_tracing)
+               return 0;
 
        stat_dir = debugfs_create_dir("trace_stat", d_tracing);
        if (!stat_dir)