mtd: plat-ram: remove redundant dev_err call in platram_probe()
authorYu Kuai <yukuai3@huawei.com>
Thu, 8 Apr 2021 11:15:13 +0000 (19:15 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 May 2021 08:44:33 +0000 (10:44 +0200)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210408111514.1011020-3-yukuai3@huawei.com
drivers/mtd/maps/plat-ram.c

index 0bec7c7..cedd8ef 100644 (file)
@@ -127,7 +127,6 @@ static int platram_probe(struct platform_device *pdev)
        info->map.virt = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(info->map.virt)) {
                err = PTR_ERR(info->map.virt);
-               dev_err(&pdev->dev, "failed to ioremap() region\n");
                goto exit_free;
        }