mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-27 03:51:57 -06:00
qapi: linter fixups
Fix minor irritants to pylint/flake8 et al. (Yes, these need to be guarded by the Python tests. That's a work in progress, a series that's quite likely to follow once I finish this Sphinx project. Please pardon the temporary irritation.) Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240626222128.406106-3-jsnow@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
f2cb4026fc
commit
f64e753149
3 changed files with 10 additions and 9 deletions
|
@ -280,8 +280,9 @@ bool visit_type_%(c_name)s(Visitor *v, const char *name,
|
|||
abort();
|
||||
default:
|
||||
assert(visit_is_input(v));
|
||||
error_setg(errp, "Invalid parameter type for '%%s', expected: %(name)s",
|
||||
name ? name : "null");
|
||||
error_setg(errp,
|
||||
"Invalid parameter type for '%%s', expected: %(name)s",
|
||||
name ? name : "null");
|
||||
/* Avoid passing invalid *obj to qapi_free_%(c_name)s() */
|
||||
g_free(*obj);
|
||||
*obj = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue