From 61d555d8a741b7859c878fc34f9279413c4900c0 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 17 Jul 2024 16:56:49 +0100 Subject: [PATCH] qconfig: Fix pylint error in read_database() Fix this error by initing the variable before the loop: tools/qconfig.py:880:22: E0606: Possibly using variable 'defconfig' before assignment (possibly-used-before-assignment) Signed-off-by: Simon Glass --- tools/qconfig.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qconfig.py b/tools/qconfig.py index 04118d942d..2492b37444 100755 --- a/tools/qconfig.py +++ b/tools/qconfig.py @@ -873,6 +873,7 @@ def read_database(): all_defconfigs = set() defconfig_db = collections.defaultdict(set) + defconfig = None for line in read_file(CONFIG_DATABASE): line = line.rstrip() if not line: # Separator between defconfigs -- 2.39.5