]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme-pci: remove redundant dma frees in hmb
authorFrancis Pravin <francis.p@samsung.com>
Thu, 16 Jan 2025 23:42:09 +0000 (05:12 +0530)
committerKeith Busch <kbusch@kernel.org>
Fri, 17 Jan 2025 19:16:34 +0000 (11:16 -0800)
commitd68fc95a771e0a7edd876ede7913d61276be77fd
treec6a8d3f9e773563e562936518c09d1e12dae4b45
parent3c47c2ccd5a29c78780ccfd0227a805f3873ab1c
nvme-pci: remove redundant dma frees in hmb

The value of size is 0 when there is no dma buffer allocated. The value
of i also remains 0. So, no need to free the dma buffer in out_free_bufs.
Hence, remove the redundant dma frees.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c