All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mailbox: bcm2835: Remove redundant dev_err call in bcm2835_mbox_probe()
@ 2021-06-01  8:24 ` Zhihao Cheng
  0 siblings, 0 replies; 6+ messages in thread
From: Zhihao Cheng @ 2021-06-01  8:24 UTC (permalink / raw)
  To: jaswinder.singh, eric, jassisinghbrar
  Cc: bcm-kernel-feedback-list, linux-kernel, linux-rpi-kernel,
	linux-arm-kernel, chengzhihao1, yukuai3

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>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-09 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01  8:24 [PATCH] mailbox: bcm2835: Remove redundant dev_err call in bcm2835_mbox_probe() Zhihao Cheng
2021-06-01  8:24 ` Zhihao Cheng
2021-06-09 12:13 ` Zhihao Cheng
2021-06-09 12:13   ` Zhihao Cheng
2021-06-09 15:58   ` Scott Branden
2021-06-09 15:58     ` Scott Branden

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.