diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-19 12:50:05 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-19 12:50:05 -0500 |
commit | 463a6c4d9d1ee041ac4c3696f11a977fa58a4c10 (patch) | |
tree | 9bbd446b24e4fdf720861735ecede7049dbbe87a | |
parent | 752defe72c37513592c014ee52809893b8990931 (diff) |
trace-graph: Fix return of trace_graph_check_sched_switch()
Need to return the variable that "ret" is set as, not always 0.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-graph.c b/trace-graph.c index 033229e..cdf84e8 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -936,7 +936,7 @@ int trace_graph_check_sched_switch(struct graph_info *ginfo, | |||
936 | strdup(*comm), *pid); | 936 | strdup(*comm), *pid); |
937 | } | 937 | } |
938 | 938 | ||
939 | return 0; | 939 | return ret; |
940 | } | 940 | } |
941 | 941 | ||
942 | static void draw_plot_info(struct graph_info *ginfo, struct graph_plot *plot, | 942 | static void draw_plot_info(struct graph_info *ginfo, struct graph_plot *plot, |