diff mbox series

[2/6] xdrgen: Clean up type_specifier

Message ID 20240930005016.13374-4-cel@kernel.org (mailing list archive)
State New
Headers show
Series Continued work on xdrgen | expand

Commit Message

Chuck Lever Sept. 30, 2024, 12:50 a.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

Clean up: Make both arms of the type_specifier AST transformer
match. No behavior change is expected.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 tools/net/sunrpc/xdrgen/xdr_ast.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tools/net/sunrpc/xdrgen/xdr_ast.py b/tools/net/sunrpc/xdrgen/xdr_ast.py
index dbd3fcf9c957..5d96c544a07b 100644
--- a/tools/net/sunrpc/xdrgen/xdr_ast.py
+++ b/tools/net/sunrpc/xdrgen/xdr_ast.py
@@ -303,9 +303,9 @@  class ParseToAst(Transformer):
                 c_classifier=c_classifier,
             )
 
-        token = children[0].data
+        name = children[0].data.value
         return _XdrBuiltInType(
-            type_name=token.value,
+            type_name=name,
             c_classifier=c_classifier,
         )