From: Michal Privoznik Date: Fri, 27 Jul 2018 16:07:38 +0000 (+0200) Subject: virpci: Drop unused @ret in virPCIDeviceListDel X-Git-Tag: v4.6.0-rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c50f89db716154c7301b129d225cb40bf3ec44ec;p=thirdparty%2Flibvirt.git virpci: Drop unused @ret in virPCIDeviceListDel So after 00dc991ca16730 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 --- diff --git a/src/util/virpci.c b/src/util/virpci.c index 634df8d35f..6cf2acf2d1 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -2003,7 +2003,7 @@ void virPCIDeviceListDel(virPCIDeviceListPtr list, virPCIDevicePtr dev) { - VIR_AUTOPTR(virPCIDevice) ret = virPCIDeviceListSteal(list, dev); + virPCIDeviceFree(virPCIDeviceListSteal(list, dev)); } int