Commit de65e642 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

nvme-pci: use struct_size for allocation struct nvme_dev



This avoids open coding the variable size array arithmetics.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Reviewed-by: default avatarCaleb Sander Mateos <csander@purestorage.com>
Reviewed-by: default avatarLeon Romanovsky <leon@kernel.org>
parent f01e389e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment