From: Qiheng Lin Date: Wed, 31 Mar 2021 09:32:44 +0000 (+0800) Subject: memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe() X-Git-Tag: io_uring-5.13-2021-05-07~83^2~1^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b11a188aef6d19fe3ca505831d9c627ef683476f;p=linux-2.6-block.git memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe() There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Qiheng Lin Link: https://lore.kernel.org/r/20210331093244.3238-1-linqiheng@huawei.com Signed-off-by: Krzysztof Kozlowski --- diff --git a/drivers/memory/fsl-corenet-cf.c b/drivers/memory/fsl-corenet-cf.c index 0309bd5a1800..f8ea592c9cb5 100644 --- a/drivers/memory/fsl-corenet-cf.c +++ b/drivers/memory/fsl-corenet-cf.c @@ -192,10 +192,8 @@ static int ccf_probe(struct platform_device *pdev) } ccf->regs = devm_ioremap_resource(&pdev->dev, r); - if (IS_ERR(ccf->regs)) { - dev_err(&pdev->dev, "%s: can't map mem resource\n", __func__); + if (IS_ERR(ccf->regs)) return PTR_ERR(ccf->regs); - } ccf->dev = &pdev->dev; ccf->info = match->data;