[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210601082454.127810-1-chengzhihao1@huawei.com>
Date: Tue, 1 Jun 2021 16:24:54 +0800
From: Zhihao Cheng <chengzhihao1@...wei.com>
To: <jaswinder.singh@...aro.org>, <eric@...olt.net>,
<jassisinghbrar@...il.com>
CC: <bcm-kernel-feedback-list@...adcom.com>,
<linux-kernel@...r.kernel.org>,
<linux-rpi-kernel@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>, <chengzhihao1@...wei.com>,
<yukuai3@...wei.com>
Subject: [PATCH] mailbox: bcm2835: Remove redundant dev_err call in bcm2835_mbox_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@...wei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@...wei.com>
---
drivers/mailbox/bcm2835-mailbox.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mailbox/bcm2835-mailbox.c b/drivers/mailbox/bcm2835-mailbox.c
index 39761d190545..86b7ce3549c5 100644
--- a/drivers/mailbox/bcm2835-mailbox.c
+++ b/drivers/mailbox/bcm2835-mailbox.c
@@ -157,7 +157,6 @@ static int bcm2835_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);
return ret;
}
--
2.31.1
Powered by blists - more mailing lists