summaryrefslogtreecommitdiff
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-07-13 21:50:17 -0600
committerMarkus Armbruster <armbru@redhat.com>2016-07-19 13:21:08 +0200
commitfa274ed6fb788866ed3a2cfd54a2ddf78f04f2c0 (patch)
treea68c8e3cf3482573f6deb33e5653f00374cc8117 /scripts/qapi.py
parentb6167706829c6e0d3572daa2b6769594ced276f7 (diff)
downloadqemu-fa274ed6fb788866ed3a2cfd54a2ddf78f04f2c0.tar.gz
qapi: Drop useless gen_err_check()
Ever since commit 12f254f removed the last parameterization of gen_err_check(), it no longer makes sense to hide the three lines of generated C code behind a macro call. Just inline it into the remaining users. No change to generated code. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1468468228-27827-7-git-send-email-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
-rw-r--r--scripts/qapi.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/qapi.py b/scripts/qapi.py
index 27284be144..9c48f6d80a 100644
--- a/scripts/qapi.py
+++ b/scripts/qapi.py
@@ -1656,14 +1656,6 @@ def gen_params(arg_type, extra):
return ret
-def gen_err_check():
- return mcgen('''
- if (err) {
- goto out;
- }
-''')
-
-
#
# Common command line parsing
#