]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Drop deadcode from chDomainDetachDeviceLive()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Sep 2025 14:01:18 +0000 (16:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Sep 2025 09:44:51 +0000 (11:44 +0200)
commit7b70c1868c0fce43539356e661923182e5d2fa0a
treeeedd71f7f6129dbb1cc6dca0d67550aebb4a6f69
parent3bd17ffe972af03924fda476e2ebfe89f53a8f4f
ch: Drop deadcode from chDomainDetachDeviceLive()

At the end of chDomainDetachDeviceLive() there's a code that
tries to remove the disk that's being detached from the domain
definition. Well, it's a leftover from the original patch which I
forgot to remove when rewriting it to use chDomainRemoveDevice().
The disk is removed there so this code has no chance in removing
it again. Drop the code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_hotplug.c