aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorQiheng Lin <linqiheng@huawei.com>2021-04-09 19:07:54 +0800
committerJassi Brar <jaswinder.singh@linaro.org>2021-04-13 20:07:36 -0500
commita683246a069b13bb661033b8cda0355686b85443 (patch)
tree4218d4829177e7c447b99ce9332a9200a5e7bcd3 /drivers/mailbox
parentmailbox: sprd: Add supplementary inbox support (diff)
downloadlinux-dev-a683246a069b13bb661033b8cda0355686b85443.tar.xz
linux-dev-a683246a069b13bb661033b8cda0355686b85443.zip
mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_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: Qiheng Lin <linqiheng@huawei.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r--drivers/mailbox/arm_mhu_db.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mailbox/arm_mhu_db.c b/drivers/mailbox/arm_mhu_db.c
index 8eb66c4ecf5b..8674153cc893 100644
--- a/drivers/mailbox/arm_mhu_db.c
+++ b/drivers/mailbox/arm_mhu_db.c
@@ -278,10 +278,8 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id)
return -ENOMEM;
mhu->base = devm_ioremap_resource(dev, &adev->res);
- if (IS_ERR(mhu->base)) {
- dev_err(dev, "ioremap failed\n");
+ if (IS_ERR(mhu->base))
return PTR_ERR(mhu->base);
- }
chans = devm_kcalloc(dev, max_chans, sizeof(*chans), GFP_KERNEL);
if (!chans)