Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: plat-ram: remove redundant dev_err call in platram_probe()

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

authored by

Yu Kuai and committed by
Miquel Raynal
c054de10 6efb943b

-1
-1
drivers/mtd/maps/plat-ram.c
··· 127 127 info->map.virt = devm_ioremap_resource(&pdev->dev, res); 128 128 if (IS_ERR(info->map.virt)) { 129 129 err = PTR_ERR(info->map.virt); 130 - dev_err(&pdev->dev, "failed to ioremap() region\n"); 131 130 goto exit_free; 132 131 } 133 132