tools: Fix pylint 3.3.4 errors
This newer pylint produces errors about variables possibly being used before being set. Adjust the code to pass these checks. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -279,6 +279,9 @@ def MicrocodeTool():
|
||||
|
||||
if (not not options.mcfile) != (not not options.mcfile):
|
||||
parser.error("You must specify either header files or a microcode file, not both")
|
||||
date = None
|
||||
microcodes = None
|
||||
license_text = None
|
||||
if options.headerfile:
|
||||
date, license_text, microcodes = ParseHeaderFiles(options.headerfile)
|
||||
elif options.mcfile:
|
||||
|
Reference in New Issue
Block a user