mirror of https://gitee.com/openkylin/libvirt.git
virpci: Drop unused @ret in virPCIDeviceListDel
So after 00dc991ca1
the function is one line long and the
line is declaring a variable which is never used in fact. Replace
it with actual free() call instead of autofree.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ea0c2856f8
commit
c50f89db71
|
@ -2003,7 +2003,7 @@ void
|
|||
virPCIDeviceListDel(virPCIDeviceListPtr list,
|
||||
virPCIDevicePtr dev)
|
||||
{
|
||||
VIR_AUTOPTR(virPCIDevice) ret = virPCIDeviceListSteal(list, dev);
|
||||
virPCIDeviceFree(virPCIDeviceListSteal(list, dev));
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue