summaryrefslogtreecommitdiffstats
path: root/pci.c
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-03 08:54:20 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-03 08:54:20 +0000
commit5f74ff1892ce1d9804b0a141743a61015e7930cb (patch)
treea1bf6ebdcf12b11a2394964756b05d6e2dca8ce4 /pci.c
parentf519585ab3ef67619ff9bf4a64337afd1f07fc54 (diff)
downloadldetect-5f74ff1892ce1d9804b0a141743a61015e7930cb.tar
ldetect-5f74ff1892ce1d9804b0a141743a61015e7930cb.tar.gz
ldetect-5f74ff1892ce1d9804b0a141743a61015e7930cb.tar.bz2
ldetect-5f74ff1892ce1d9804b0a141743a61015e7930cb.tar.xz
ldetect-5f74ff1892ce1d9804b0a141743a61015e7930cb.zip
get rid of {pci,usb}_find_modules()
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pci.c b/pci.c
index a7a11da..ab63145 100644
--- a/pci.c
+++ b/pci.c
@@ -6,9 +6,6 @@
#include "libldetect-private.h"
#include "common.h"
-static int pci_find_modules(struct pciusb_entries entries, int no_subid) {
- return pciusb_find_modules(entries, "pcitable", no_subid);
-}
extern struct pciusb_entries pci_probe(int probe_type) {
FILE *f;
@@ -63,7 +60,8 @@ extern struct pciusb_entries pci_probe(int probe_type) {
fclose(f);
r.entries = memdup(t, sizeof(struct pciusb_entry) * r.nb);
- if (pci_find_modules(r, probe_type)) return r;
+ if (pciusb_find_modules(r, "pcitable", probe_type))
+ return r;
/* ok, let's try again with subids */
if (probe_type == 0) return pci_probe(1);