This commit is contained in:
elewarr 2017-11-16 10:08:05 +00:00 committed by GitHub
commit 1c2983e6f7

View File

@ -617,7 +617,11 @@ pci_subclass_name(pcireg_t reg)
subclassp++; subclassp++;
} }
if (subclassp) {
return subclassp->name; return subclassp->name;
} else {
return NULL;
}
} }
#endif /* defined(__minix) && defined(_PCI_SERVER) */ #endif /* defined(__minix) && defined(_PCI_SERVER) */