From 2a5c5093ec69baf1460d1dadb617b7f5371b5b60 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 5 Nov 2025 12:46:29 +1100 Subject: [PATCH] tools/cc1: Fix ruff lint check with list length. Signed-off-by: Damien George --- tools/cc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cc1 b/tools/cc1 index 7a047e9ac1..aa2534f01e 100755 --- a/tools/cc1 +++ b/tools/cc1 @@ -174,7 +174,7 @@ def process_map_table(file, line, output): if print_debug: print(" %s lookup took %u attempts" % (qstr, attempts)) total_attempts += attempts - if len(entries): + if entries: stats = len(map), len(entries) / len(map), total_attempts / len(entries) else: stats = 0, 0, 0