aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-03-16 08:13:14 +0100
committerMarkus Armbruster <armbru@redhat.com>2023-04-24 15:09:34 +0200
commit607045ba39f6ca845ede3131a902ad785088fea3 (patch)
treefe9fa6a590215d088487bd05d84e369146a59714 /scripts
parentecee568ef9bc81a2a74399290ad0e445c1c36d2c (diff)
downloadqemu-607045ba39f6ca845ede3131a902ad785088fea3.zip
qemu-607045ba39f6ca845ede3131a902ad785088fea3.tar.gz
qemu-607045ba39f6ca845ede3131a902ad785088fea3.tar.bz2
qapi: Clean up after removal of simple unions
Commit 4e99f4b12c0 (qapi: Drop simple unions) missed a bit of code dealing with simple union branches. Drop it. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230316071325.492471-4-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi/expr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi/expr.py b/scripts/qapi/expr.py
index ca01ea6..59bdd86 100644
--- a/scripts/qapi/expr.py
+++ b/scripts/qapi/expr.py
@@ -518,7 +518,7 @@ def check_union(expr: QAPIExpression) -> None:
source = "'data' member '%s'" % key
check_keys(value, info, source, ['type'], ['if'])
check_if(value, info, source)
- check_type(value['type'], info, source, allow_array=not base)
+ check_type(value['type'], info, source)
def check_alternate(expr: QAPIExpression) -> None: