When foo(..., &err) is followed by error_propagate(errp, err), we can
often just as well do foo(..., errp). The previous commit did that
for simple cases with Coccinelle. Do it for a few more manually.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
block.c | 2 +-
block/gluster.c | 8 ++++----
block/parallels.c | 2 +-
block/quorum.c | 2 +-
block/replication.c | 2 +-
block/vxhs.c | 4 ++--
hw/net/virtio-net.c | 4 ++--
7 files changed, 12 insertions(+), 12 deletions(-)
+++ b/block/gluster.c
@@ -523,7 +523,7 @@ static int qemu_gluster_parse_json(BlockdevOptionsGluster
*gconf,
/* create opts info from runtime_json_opts list */
opts = qemu_opts_create(&runtime_json_opts, NULL, 0, &error_abort);
- if (!qemu_opts_absorb_qdict(opts, options, &local_err)) {
+ if (!qemu_opts_absorb_qdict(opts, options, errp)) {
goto out;
}