qemuDomainDetachControllerDevice contained code which implied that alias
might be NULL when detaching the disk and tried to generate it. This is
no longer possible so we can remove the code.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
goto cleanup;
}
- if (!detach->info.alias) {
- if (qemuAssignDeviceControllerAlias(vm->def, priv->qemuCaps, detach) < 0)
- goto cleanup;
- }
-
if (!async)
qemuDomainMarkDeviceForRemoval(vm, &detach->info);