liquidio: Use device_set_descf()

No functional change intended.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-06-05 10:26:22 -04:00
parent 443f33481e
commit 1794a0a87e
1 changed files with 2 additions and 4 deletions

View File

@ -200,7 +200,6 @@ lio_probe(device_t dev)
uint16_t device_id;
uint16_t subdevice_id;
uint8_t revision_id;
char device_ver[256];
vendor_id = pci_get_vendor(dev);
if (vendor_id != PCI_VENDOR_ID_CAVIUM)
@ -216,9 +215,8 @@ lio_probe(device_t dev)
(device_id == tbl->device_id) &&
(subdevice_id == tbl->subdevice_id) &&
(revision_id == tbl->revision_id)) {
sprintf(device_ver, "%s, Version - %s",
lio_strings[tbl->index], LIO_VERSION);
device_set_desc_copy(dev, device_ver);
device_set_descf(dev, "%s, Version - %s",
lio_strings[tbl->index], LIO_VERSION);
return (BUS_PROBE_DEFAULT);
}