qemu-img: remove dead check
options must be non-NULL here, because it has been checked before. Reported by Coverity. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
d62d1eb627
commit
ece9086eb5
|
@ -3455,14 +3455,12 @@ static int img_amend(int argc, char **argv)
|
||||||
|
|
||||||
create_opts = qemu_opts_append(create_opts, bs->drv->create_opts);
|
create_opts = qemu_opts_append(create_opts, bs->drv->create_opts);
|
||||||
opts = qemu_opts_create(create_opts, NULL, 0, &error_abort);
|
opts = qemu_opts_create(create_opts, NULL, 0, &error_abort);
|
||||||
if (options) {
|
|
||||||
qemu_opts_do_parse(opts, options, NULL, &err);
|
qemu_opts_do_parse(opts, options, NULL, &err);
|
||||||
if (err) {
|
if (err) {
|
||||||
error_report_err(err);
|
error_report_err(err);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* In case the driver does not call amend_status_cb() */
|
/* In case the driver does not call amend_status_cb() */
|
||||||
qemu_progress_print(0.f, 0);
|
qemu_progress_print(0.f, 0);
|
||||||
|
|
Loading…
Reference in New Issue