[PATCH v2 7/9] nvmet: remove unreachable "pcie" entry from the address family map

Nilay Shroff nilay at linux.ibm.com
Fri Nov 6 05:19:51 PST 2026


On 11/6/26 7:57 AM, Guixin Liu wrote:
> The first entry of nvmet_addr_family[] is never matched: both the
> adrfam show and store handlers skip index 0, and the
> NVMF_ADDR_FAMILY_PCI type is matched by the "pci" entry further down
> the array. Drop the entry and start the iteration at index 0 so the
> map no longer needs an explanation for the skipped element.
> 
> Signed-off-by: Guixin Liu<kanie at linux.alibaba.com>

Wonder why does at first place, we added the duplicate
entries for NVMF_ADDR_FAMILY_PCI in nvmet_addr_family[].
May be some history which I don't know...

Anyways, Looks good to me:

Reviewed-by: Nilay Shroff <nilay at linux.ibm.com>




More information about the Linux-nvme mailing list