OSDN Git Service

qapi: Simplify gen_visit_fields() error handling
authorEric Blake <eblake@redhat.com>
Tue, 29 Sep 2015 22:21:15 +0000 (16:21 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 12 Oct 2015 16:46:50 +0000 (18:46 +0200)
commit18bdbc3ac8b477e160d56aa6ecd6942495ce44d0
treec1d186eb113f2da856120c7880574df34efca228
parent82ca8e469666b169ccf818a0e36136aee97d7db0
qapi: Simplify gen_visit_fields() error handling

Since we have consolidated all generated code to use 'err' as
the name of the local variable for error detection, we can
simplify the decision on whether to skip error detection (useful
for deallocation paths) to be a boolean.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1443565276-4535-18-git-send-email-eblake@redhat.com>
[Change to gen_visit_fields() simplified]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-commands.py
scripts/qapi.py