HomeFreeBSD

nvme: Eliminate redundant code

Description

nvme: Eliminate redundant code

get_admin_opcode_string and get_io_opcode_string are identical, but
start with different tables. Use a helper routine that takes an argument
to implement these instead. A future commit will refine this further.

Sponsored by: Netflix
Reviewed by: chuck, mav, jhb
Differential Revision: https://reviews.freebsd.org/D41310

Details

Provenance
impAuthored on Aug 7 2023, 10:35 PM
Reviewer
chuck
Differential Revision
D41310: nvme: Eliminate redundant code
Parents
rG7be0b0688538: nvme: Remove duplicate command printing routine
Branches
Unknown
Tags
Unknown