aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-06-05 19:30:15 +0000
committerMark Johnston <markj@FreeBSD.org>2024-06-16 20:37:26 +0000
commit89848b3445ad52c304e6f9c5036aa9108bedb4c8 (patch)
tree1f5910197ca19c48b17be506392f5d373ee3d8ed
parenta96a9577127c9bf804e7e47e38e7b4123a43efa1 (diff)
downloadsrc-89848b3445ad52c304e6f9c5036aa9108bedb4c8.tar.gz
src-89848b3445ad52c304e6f9c5036aa9108bedb4c8.zip
mana: Use device_set_desc()
No functional change intended. MFC after: 1 week
-rw-r--r--sys/dev/mana/gdma_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/mana/gdma_main.c b/sys/dev/mana/gdma_main.c
index 13f8a30762b1..6be3e148d0da 100644
--- a/sys/dev/mana/gdma_main.c
+++ b/sys/dev/mana/gdma_main.c
@@ -1750,7 +1750,6 @@ static int
mana_gd_probe(device_t dev)
{
mana_vendor_id_t *ent;
- char adapter_name[60];
uint16_t pci_vendor_id = 0;
uint16_t pci_device_id = 0;
@@ -1764,8 +1763,7 @@ mana_gd_probe(device_t dev)
mana_dbg(NULL, "vendor=%x device=%x\n",
pci_vendor_id, pci_device_id);
- sprintf(adapter_name, DEVICE_DESC);
- device_set_desc_copy(dev, adapter_name);
+ device_set_desc(dev, DEVICE_DESC);
return (BUS_PROBE_DEFAULT);
}