mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
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>
This commit is contained in:
parent
b616770682
commit
fa274ed6fb
3 changed files with 9 additions and 11 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue