Skip to content

Commit 067c933

Browse files
committed
sof_perf_analyzer: fix missing return statement
Fix missing return statement at skip_to_first_trace() pylint R1710 'inconsistent return statement'. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
1 parent 08ab4bd commit 067c933

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/sof_perf_analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def skip_to_first_trace(trace_item_gen: TraceItemGenerator):
106106
# The first trace must have a timestamp with integral part equals to 0.
107107
if int(item.timestamp) == 0:
108108
return item
109+
return next(trace_item_gen)
109110

110111
def make_trace_item(fileio: TextIO) -> TraceItemGenerator:
111112
'''Filter and parse a line of trace in string form into TraceItem object, for example:

0 commit comments

Comments
 (0)