Reduced number of syscalls
This commit is contained in:
+2
-1
@@ -62,7 +62,8 @@ int find_evga_gpu_i2cs(struct card_info *infos, int max_gpus)
|
||||
/* Matched all PCI IDs, check for good firmware read */
|
||||
strcpy(dev_file, "/dev/");
|
||||
strcat(dev_file, ent->d_name);
|
||||
if (check_for_icx3(dev_file)) {
|
||||
infos[num_gpus].i2c_dev_path = dev_file;
|
||||
if (icx3_init(&infos[num_gpus]) > 0) {
|
||||
/* Write our card info into the provided struct array */
|
||||
infos[num_gpus].card_name = evga_pci_ids[i].card_name;
|
||||
infos[num_gpus].pci_id = pci_addr;
|
||||
|
||||
Reference in New Issue
Block a user