/openbmc/qemu/monitor/ |
H A D | monitor.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
/openbmc/qemu/hw/block/ |
H A D | xen-block.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
/openbmc/qemu/hw/core/ |
H A D | numa.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
/openbmc/qemu/hw/acpi/ |
H A D | core.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
/openbmc/qemu/block/ |
H A D | ssh.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | nfs.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | vdi.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | vhdx.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | parallels.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | rbd.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | vpc.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | qcow.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | qed.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|
H A D | qcow2.c | diff b11a093c6025635b4504d79d30daa334a01279a5 Tue Jul 07 11:06:07 CDT 2020 Markus Armbruster <armbru@redhat.com> qapi: Smooth another visitor error checking pattern
Convert
visit_type_FOO(v, ..., &ptr, &err); ... if (err) { ... }
to
visit_type_FOO(v, ..., &ptr, errp); ... if (!ptr) { ... }
for functions that set @ptr to non-null / null on success / error.
Eliminate error_propagate() that are now unnecessary. Delete @err that are now unused.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-40-armbru@redhat.com>
|