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...
This commit is contained in:
Patrick Griffis
2017-06-20 16:26:28 -04:00
parent 2d184c0967
commit 99e16110bc
4 changed files with 10 additions and 37 deletions

View File

@ -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);