mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 23:24:23 +03:00
vmx: Drop needless check in virVMXParseDisk()
After previous patch it can no longer happen that @def will be NULL and *def won't be. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d628c5ded1
commit
48344c640f
@ -2213,11 +2213,6 @@ virVMXParseDisk(virVMXContext *ctx, virDomainXMLOption *xmlopt, virConf *conf,
|
||||
char mode_name[32] = "";
|
||||
char *mode = NULL;
|
||||
|
||||
if (def == NULL || *def != NULL) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Invalid argument"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!(*def = virDomainDiskDefNew(xmlopt)))
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user