From 523ce8ad31303d821fc76fb37ffba762e1bc8237 Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Sun, 18 Jul 2021 10:03:23 +0800 Subject: [PATCH] board_inspector: Remove dead code in parser.py A DualNamePath clause is a NamePath that only follows rootchar or prefixpath. Thus, it is never necessary to check if a dot is necessary for separating segments before a DualNamePath. This patch removes the code that conduct that check. Tracked-On: #6287 Signed-off-by: Junjie Mao --- misc/config_tools/board_inspector/acpiparser/aml/parser.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/misc/config_tools/board_inspector/acpiparser/aml/parser.py b/misc/config_tools/board_inspector/acpiparser/aml/parser.py index 9ee5505b2..12efd16b4 100644 --- a/misc/config_tools/board_inspector/acpiparser/aml/parser.py +++ b/misc/config_tools/board_inspector/acpiparser/aml/parser.py @@ -106,8 +106,6 @@ class NameStringFactory(Factory): # Object name if ord(char) == grammar.AML_DUAL_NAME_PREFIX: - if acc and acc[-1] not in ["\\", "^"]: - acc += "." acc += stream.get_fixed_length_string(4) acc += "." acc += stream.get_fixed_length_string(4)