]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ena: Use device_set_desc in probe
authorDawid Gorecki <dgr@semihalf.com>
Fri, 10 Jun 2022 09:18:10 +0000 (11:18 +0200)
committerMarcin Wojtas <mw@FreeBSD.org>
Thu, 30 Jun 2022 15:32:01 +0000 (17:32 +0200)
commit755e60ca046390bdcfc097b6a8f1a032d47a7b65
tree6f8aad4239c2fb07d560ca679113ad1a01d20994
parentf65d7660b5e0295745da8b91635657a27e29fb6a
ena: Use device_set_desc in probe

During probe the driver created a temporary buffer to which the value of
DEVICE_DESC constant was printed. This buffer was then copied to the
device structure using device_set_desc_copy. Since the value of this
string is exactly the same for every device using the ENA driver, using
sprintf is unnecessary, and device_set_desc can be used instead.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.
sys/dev/ena/ena.c