mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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:
parent
d2a430f90a
commit
161e21018a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user