mirror of
https://github.com/smaeul/u-boot.git
synced 2025-11-26 22:01:10 +00:00
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>
This commit is contained in:
parent
f4e163ece4
commit
61d555d8a7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user