From: Simon Glass Date: Wed, 17 Jul 2024 15:56:49 +0000 (+0100) Subject: qconfig: Fix pylint error in read_database() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=61d555d8a741b7859c878fc34f9279413c4900c0;p=u-boot.git 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 --- 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