]> xenbits.xensource.com Git - libvirt.git/commitdiff
virpci: Drop unused @ret in virPCIDeviceListDel
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Jul 2018 16:07:38 +0000 (18:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Jul 2018 16:07:38 +0000 (18:07 +0200)
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 <mprivozn@redhat.com>
src/util/virpci.c

index 634df8d35f09950a9e5e157953a22bba4a9212f2..6cf2acf2d1c78ea7079e9fb2d30640058f085a7e 100644 (file)
@@ -2003,7 +2003,7 @@ void
 virPCIDeviceListDel(virPCIDeviceListPtr list,
                     virPCIDevicePtr dev)
 {
-    VIR_AUTOPTR(virPCIDevice) ret = virPCIDeviceListSteal(list, dev);
+    virPCIDeviceFree(virPCIDeviceListSteal(list, dev));
 }
 
 int