Skip to content

Commit 92075d9

Browse files
Tang Binstorulf
authored andcommitted
mmc: cavium-octeon: remove nonsense variable coercion
In this function, the variable 'base' is already 'void __iomem *base', and the return function 'devm_platform_ioremap_resource()' also returns this type, so the mandatory definition here is redundant. Signed-off-by: Tang Bin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 9e2582e commit 92075d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mmc/host/cavium-octeon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ static int octeon_mmc_probe(struct platform_device *pdev)
207207
base = devm_platform_ioremap_resource(pdev, 0);
208208
if (IS_ERR(base))
209209
return PTR_ERR(base);
210-
host->base = (void __iomem *)base;
210+
host->base = base;
211211
host->reg_off = 0;
212212

213213
base = devm_platform_ioremap_resource(pdev, 1);
214214
if (IS_ERR(base))
215215
return PTR_ERR(base);
216-
host->dma_base = (void __iomem *)base;
216+
host->dma_base = base;
217217
/*
218218
* To keep the register addresses shared we intentionaly use
219219
* a negative offset here, first register used on Octeon therefore

0 commit comments

Comments
 (0)