HomeFreeBSD

ena: Use device_set_desc in probe

Description

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.

Details

Provenance
dgr_semihalf.comAuthored on Jun 10 2022, 9:18 AM
mwCommitted on Jun 30 2022, 3:32 PM
Parents
rGf65d7660b5e0: ena: Remove TSO refs from the documentation
Branches
Unknown
Tags
Unknown