[PATCH 5/9] moveconfig: Correct pylint errors

Simon Glass sjg at chromium.org
Fri Feb 11 21:23:22 CET 2022


Fix two pylint errors in this file.

Note ACTION_SPL_NOT_EXIST is not defined so the dead code can be removed.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/moveconfig.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 1bcf58caf1..d532863637 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -326,7 +326,7 @@ def read_file(fname, as_lines=True, skip_unicode=False):
                 return inf.read()
         except UnicodeDecodeError as e:
             if not skip_unicode:
-                raises
+                raise
             print("Failed on file %s': %s" % (fname, e))
             return None
 
@@ -777,9 +777,6 @@ class KconfigParser:
                 actlog = "'%s' is the same as the define in Kconfig.  Do nothing." \
                          % value
                 log_color = COLOR_LIGHT_PURPLE
-            elif action == ACTION_SPL_NOT_EXIST:
-                actlog = 'SPL is not enabled for this defconfig.  Skip.'
-                log_color = COLOR_PURPLE
             else:
                 sys.exit('Internal Error. This should not happen.')
 
-- 
2.35.1.265.g69c8d7142f-goog



More information about the U-Boot mailing list