[PATCH 7/7] nvme-pci: use struct_size for allocation struct nvme_dev
Leon Romanovsky
leon at kernel.org
Tue May 13 00:20:34 PDT 2025
On Tue, May 13, 2025 at 09:00:23AM +0200, Christoph Hellwig wrote:
> This avoid open coding the variable size array arithmetics.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> drivers/nvme/host/pci.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leon at kernel.org>
More information about the Linux-nvme
mailing list