mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
conf: Avoid double assignment in virDomainDiskRemove
Although it should be harmless to do: disk = disk = def->disks[i] some not-so-wise compilers may fool around. Besides, such assignment is useless here. (cherry picked from commit e14d6571c1185133d15161bb4b18ec9b11192358)
This commit is contained in:
parent
7175699cbb
commit
cea0c393aa
@ -7124,7 +7124,7 @@ void virDomainDiskInsertPreAlloced(virDomainDefPtr def,
|
|||||||
virDomainDiskDefPtr
|
virDomainDiskDefPtr
|
||||||
virDomainDiskRemove(virDomainDefPtr def, size_t i)
|
virDomainDiskRemove(virDomainDefPtr def, size_t i)
|
||||||
{
|
{
|
||||||
virDomainDiskDefPtr disk = disk = def->disks[i];
|
virDomainDiskDefPtr disk = def->disks[i];
|
||||||
|
|
||||||
if (def->ndisks > 1) {
|
if (def->ndisks > 1) {
|
||||||
memmove(def->disks + i,
|
memmove(def->disks + i,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user