diff options
author | Robin Murphy <robin.murphy@arm.com> | 2023-11-24 18:10:03 +0000 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-12-15 12:32:42 +0100 |
commit | 4ad4c1f394b84f9941a10aa8aaf11102478a390b (patch) | |
tree | dd8752f43b26d9a042f2124b2d1b7551e0a83d95 /kernel/dma | |
parent | 3f7168591ebf7bbdb91797d02b1afaf00a4289b1 (diff) | |
download | linux-4ad4c1f394b84f9941a10aa8aaf11102478a390b.tar.gz linux-4ad4c1f394b84f9941a10aa8aaf11102478a390b.tar.bz2 linux-4ad4c1f394b84f9941a10aa8aaf11102478a390b.zip |
dma-mapping: don't store redundant offsets
A bus_dma_region necessarily stores both CPU and DMA base addresses for
a range, so there's no need to also store the difference between them.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma')
-rw-r--r-- | kernel/dma/direct.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 73c95815789a..98b2e192fd69 100644 --- a/kernel/dma/direct.c +++ b/kernel/dma/direct.c @@ -677,7 +677,6 @@ int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start, return -ENOMEM; map[0].cpu_start = cpu_start; map[0].dma_start = dma_start; - map[0].offset = offset; map[0].size = size; dev->dma_range_map = map; return 0; |