]> www.infradead.org Git - users/hch/block.git/commit
nvme-pci: remove struct nvme_descriptor
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Oct 2024 16:56:24 +0000 (18:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 5 Oct 2024 17:21:09 +0000 (19:21 +0200)
commit628a75d1efaae4d061c6857d53c3e9cdf5496084
treef69cfe36775ac91b7675a54d0818f5b08e54bd81
parentac009ee43fe386b4c2c0834ebd28478189fb8c4c
nvme-pci: remove struct nvme_descriptor

There is no real point in having a union of two pointer types here, just
use a void pointer as we mix and match types between the arms of the
union between the allocation and freeing side already.

Also rename the nr_allocations field to nr_descriptors to better describe
what it does.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c