diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 50ac334..e845664 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1904,27 +1904,25 @@ static int trace_empty(struct trace_iterator *iter) static int print_trace_line(struct trace_iterator *iter) { - int ret; - if (iter->trace && iter->trace->print_line) - if ((ret = iter->trace->print_line(iter))) - return ret; + if (iter->trace->print_line(iter)) + return 1; if (trace_flags & TRACE_ITER_BIN) - if ((ret = print_bin_fmt(iter))) - return ret; + if (print_bin_fmt(iter)) + return 1; if (trace_flags & TRACE_ITER_HEX) - if ((ret = print_hex_fmt(iter))) - return ret; + if (print_hex_fmt(iter)) + return 1; if (trace_flags & TRACE_ITER_RAW) - if ((ret = print_raw_fmt(iter))) - return ret; + if (print_raw_fmt(iter)) + return 1; if (iter->iter_flags & TRACE_FILE_LAT_FMT) - if ((ret = print_lat_fmt(iter, iter->idx, iter->cpu))) - return ret; + if (print_lat_fmt(iter, iter->idx, iter->cpu)) + return 1; return print_trace_fmt(iter); }