mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-06 21:15:22 +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 e14d6571c1
)
This commit is contained in:
parent
7175699cbb
commit
cea0c393aa
@ -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…
Reference in New Issue
Block a user