vbox: remove unreachable error in virVBoxSnapshotConfSaveVboxFile

Both callers in the VirtualBox driver handle the error and only
call this function with a non-NULL argument.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Ján Tomko 2023-03-18 12:34:47 +01:00
parent d2a430f90a
commit 161e21018a

View File

@ -952,11 +952,6 @@ virVBoxSnapshotConfSaveVboxFile(virVBoxSnapshotConfMachine *machine,
_("Machine is null"));
goto cleanup;
}
if (filePath == NULL) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Filepath is null"));
goto cleanup;
}
xml = xmlNewDoc(BAD_CAST "1.0");
if (!xml)
abort();