Markus Armbruster
89bf68f933
qapi: Generate simpler marshalling code when no arguments
...
When command FOO has no arguments, its generated qmp_marshal_FOO() is
a bit confusing. Make it simpler:
visit_start_struct(v, NULL, NULL, 0, &err);
if (err) {
goto out;
}
-
- if (!err) {
- visit_check_struct(v, &err);
- }
+ visit_check_struct(v, &err);
visit_end_struct(v, NULL);
if (err) {
goto out;
}
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200424084338.26803-16-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2020-04-30 07:26:41 +02:00
..
2020-04-04 14:14:09 +02:00
2020-04-14 13:15:40 +01:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2020-04-30 07:26:41 +02:00
2018-08-23 18:46:25 +02:00
2019-03-12 08:04:22 +01:00
2020-02-07 15:15:16 +01:00
2020-03-17 21:09:26 -04:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2019-12-16 10:59:50 -05:00
2019-07-23 15:53:25 +01:00
2020-03-29 06:33:47 -04:00
2019-06-12 13:20:20 +02:00
2019-03-22 16:18:07 +00:00
2019-05-07 12:55:02 +01:00
2019-07-15 20:58:37 +02:00
2020-03-30 11:44:04 -07:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2019-01-11 15:46:55 +01:00
2020-03-20 16:02:00 +01:00
2020-02-22 08:26:47 +00:00
2020-02-13 11:31:58 +01:00
2020-03-09 15:59:31 +01:00
2020-03-12 11:14:05 +00:00
2020-03-06 10:05:24 +00:00
2020-04-14 17:15:33 +01:00
2019-10-07 14:54:45 +02:00
2020-02-13 13:40:59 +00:00
2020-02-07 15:15:16 +01:00
2019-11-06 13:28:27 +01:00
2019-03-11 16:55:52 +01:00
2020-01-13 16:42:20 +00:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:15:16 +01:00
2018-10-16 18:34:19 +02:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2019-02-05 16:50:16 +01:00
2019-02-05 16:50:16 +01:00
2020-03-06 10:04:57 +00:00
2020-02-07 15:12:48 +01:00
2020-01-23 16:41:36 +00:00
2020-03-20 16:02:00 +01:00
2020-03-20 16:02:00 +01:00
2020-02-07 15:15:16 +01:00