From 161e21018a178c3ba05d82e30b36a258f5a61fc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Tomko?= Date: Sat, 18 Mar 2023 12:34:47 +0100 Subject: [PATCH] vbox: remove unreachable error in virVBoxSnapshotConfSaveVboxFile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Laine Stump --- src/vbox/vbox_snapshot_conf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/vbox/vbox_snapshot_conf.c b/src/vbox/vbox_snapshot_conf.c index a6e5fad4d2..78fb360e1e 100644 --- a/src/vbox/vbox_snapshot_conf.c +++ b/src/vbox/vbox_snapshot_conf.c @@ -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(); -- 2.47.2