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 /drivers/acpi/scan.c | |
parent | 3f7168591ebf7bbdb91797d02b1afaf00a4289b1 (diff) |
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 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 02bb2cce423f..ee88a727f200 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1532,7 +1532,6 @@ int acpi_dma_get_range(struct device *dev, const struct bus_dma_region **map) r->cpu_start = rentry->res->start; r->dma_start = rentry->res->start - rentry->offset; r->size = resource_size(rentry->res); - r->offset = rentry->offset; r++; } } |