mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25: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.
This commit is contained in:
parent
354e6d4ed0
commit
e14d6571c1
@ -7124,7 +7124,7 @@ void virDomainDiskInsertPreAlloced(virDomainDefPtr def,
|
||||
virDomainDiskDefPtr
|
||||
virDomainDiskRemove(virDomainDefPtr def, size_t i)
|
||||
{
|
||||
virDomainDiskDefPtr disk = disk = def->disks[i];
|
||||
virDomainDiskDefPtr disk = def->disks[i];
|
||||
|
||||
if (def->ndisks > 1) {
|
||||
memmove(def->disks + i,
|
||||
|
Loading…
x
Reference in New Issue
Block a user