mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
nvmf: Use device_set_descf()
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
44d36c9731
commit
b67f248523
|
@ -251,13 +251,11 @@ static int
|
|||
nvmf_probe(device_t dev)
|
||||
{
|
||||
struct nvmf_ivars *ivars = device_get_ivars(dev);
|
||||
char desc[260];
|
||||
|
||||
if (ivars == NULL)
|
||||
return (ENXIO);
|
||||
|
||||
snprintf(desc, sizeof(desc), "Fabrics: %.256s", ivars->cdata->subnqn);
|
||||
device_set_desc_copy(dev, desc);
|
||||
device_set_descf(dev, "Fabrics: %.256s", ivars->cdata->subnqn);
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue