mailbox: bcm-flexrm-mailbox: Remove redundant dev_err call in flexrm_mbox_probe()
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 1 Jun 2021 08:28:34 +0000 (16:28 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 26 Jun 2021 16:40:34 +0000 (11:40 -0500)
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: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-flexrm-mailbox.c

index b4f33dc..78073ad 100644 (file)
@@ -1523,7 +1523,6 @@ static int flexrm_mbox_probe(struct platform_device *pdev)
        mbox->regs = devm_ioremap_resource(&pdev->dev, iomem);
        if (IS_ERR(mbox->regs)) {
                ret = PTR_ERR(mbox->regs);
-               dev_err(&pdev->dev, "Failed to remap mailbox regs: %d\n", ret);
                goto fail;
        }
        regs_end = mbox->regs + resource_size(iomem);