]> www.infradead.org Git - users/hch/misc.git/commit
nvme-pci: use struct_size for allocation struct nvme_dev nvme-cleanups
authorChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 15:20:44 +0000 (17:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 15:20:44 +0000 (17:20 +0200)
commit8dbdfa8a101c73cd5f0630bc7ca86a9821bed497
treeccf2817788b51e9e3ff528a92955580acf07b9b7
parent76ebe1586c5215acf0669c6f366e223646b8a62b
nvme-pci: use struct_size for allocation struct nvme_dev

This avoid open coding the variable size array arithmetics.

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