aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass2024-07-17 16:56:49 +0100
committerSimon Glass2024-07-26 08:01:05 -0600
commit61d555d8a741b7859c878fc34f9279413c4900c0 (patch)
tree45520b8c62ffbea5768bc8eed490baf203bd1ba4
parentf4e163ece454bcf949a9b2005de3b70392ca05d1 (diff)
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 <sjg@chromium.org>
-rwxr-xr-xtools/qconfig.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qconfig.py b/tools/qconfig.py
index 04118d942da..2492b37444a 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