X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fnames-hash.c;h=33f3c11b4d5379a7620db90159e002fd771bbf1c;hb=a2bf30a4fd407c55e8172e2f6fd158725ccb90b6;hp=d0748c7b9e16550b2a5b345f933d4fe0b5e2d079;hpb=752d4d9ab7e567ea972a16f33d2a210ae90b7051;p=pciutils.git diff --git a/lib/names-hash.c b/lib/names-hash.c index d0748c7..33f3c11 100644 --- a/lib/names-hash.c +++ b/lib/names-hash.c @@ -112,12 +112,11 @@ char return NULL; } -static void +void pci_id_hash_free(struct pci_access *a) { pci_mfree(a->id_hash); a->id_hash = NULL; - a->id_cache_status = 0; while (a->current_id_bucket) { struct id_bucket *buck = a->current_id_bucket; @@ -125,10 +124,3 @@ pci_id_hash_free(struct pci_access *a) pci_mfree(buck); } } - -void -pci_free_name_list(struct pci_access *a) -{ - pci_id_cache_flush(a); - pci_id_hash_free(a); -}