We only jump to cleanup before allocating any lists.
Drop the dead code.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
struct udev_list_entry *dev_entry;
virInterfacePtr *ifaces_list = NULL;
virInterfacePtr iface_obj;
- int tmp_count;
int count = 0;
int status = 0;
int ret = -1;
if (enumerate)
udev_enumerate_unref(enumerate);
udev_unref(udev);
-
- if (ifaces) {
- for (tmp_count = 0; tmp_count < count; tmp_count++)
- virObjectUnref(ifaces_list[tmp_count]);
- }
-
- VIR_FREE(ifaces_list);
-
return ret;
}