diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index c2902ac1ddf86e9c9603d0b416b8ef09b0a5bc42..42a653a431902da61535822f48ac8caa126306c0 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4822,7 +4822,7 @@ static int qemudDomainSaveFlag(virDomainPtr dom, const char *path, virReportSystemError(errno, _("unable to open %s"), path); goto endjob; } - if ((rc = qemudDomainSaveFileOpHook(fd, &hdata)) != 0) { + if (qemudDomainSaveFileOpHook(fd, &hdata) != 0) { close(fd); goto endjob; }