From 99e16110bc42856492636b4b492a0cffe6d70a88 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Tue, 20 Jun 2017 16:26:28 -0400 Subject: sysinfo: Simplify finding pci.ids file on Unix There is probably no reason to make this user configurable just get the correct one at build time... --- plugins/sysinfo/unix/pci.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/sysinfo/unix/pci.c') diff --git a/plugins/sysinfo/unix/pci.c b/plugins/sysinfo/unix/pci.c index 71b085fe..a887245c 100644 --- a/plugins/sysinfo/unix/pci.c +++ b/plugins/sysinfo/unix/pci.c @@ -122,11 +122,8 @@ void pci_find_fullname(char *fullname, char *vendor, char *device) char *position; int cardfound = 0; FILE *fp; - - if (!sysinfo_get_str_pref ("pciids", buffer)) - strcpy (buffer, DEFAULT_PCIIDS); - fp = fopen (buffer, "r"); + fp = fopen (PCIIDS_FILE, "r"); if(fp == NULL) { g_snprintf(fullname, bsize, "%s:%s", vendor, device); -- cgit 1.4.1