]> exis.tech > repos - linux.git/blobdiff - kernel/trace/trace.c
Merge tag 'hwmon-for-v7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux.git] / kernel / trace / trace.c
index 1146b83b711a2bfa724ba08def7e19f6c4425790..18710c190c924f3d9528c424b4fdb1a5cf6dbc5a 100644 (file)
@@ -87,7 +87,7 @@ void __init disable_tracing_selftest(const char *reason)
 
 /* Pipe tracepoints to printk */
 static struct trace_iterator *tracepoint_print_iter;
-int tracepoint_printk;
+static int tracepoint_printk;
 static bool tracepoint_printk_stop_on_boot __initdata;
 static bool traceoff_after_boot __initdata;
 static DEFINE_STATIC_KEY_FALSE(tracepoint_printk_key);
@@ -5015,7 +5015,6 @@ int tracing_set_tracer(struct trace_array *tr, const char *buf)
                                                RING_BUFFER_ALL_CPUS);
                if (ret < 0)
                        return ret;
-               ret = 0;
        }
 
        list_for_each_entry(t, &tr->tracers, list) {