From 8f9c857f406f039f1310601a8b4fd2e1ac0123ea Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 5 Jun 2024 07:02:07 +0800 Subject: [PATCH] stall-analyser: remove unused variable `count` is never used after being assigned, so drop it. Signed-off-by: Kefu Chai --- scripts/stall-analyser.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/stall-analyser.py b/scripts/stall-analyser.py index 119e3bd2eb5..e801bfea008 100755 --- a/scripts/stall-analyser.py +++ b/scripts/stall-analyser.py @@ -331,7 +331,6 @@ def print_command_line_options(args): def main(): args = get_command_line_parser().parse_args() - count = 0 comment = re.compile(r'^\s*#') pattern = re.compile(r"Reactor stalled for (?P\d+) ms on shard (?P\d+).*Backtrace:") address_threshold = int(args.address_threshold, 0) @@ -350,7 +349,6 @@ def main(): m = pattern.search(s) if not m: continue - count += 1 # extract the time in ms trace = s[m.span()[1]:].split() t = int(m.group("stall"))