From: Qiheng Lin Date: Fri, 9 Apr 2021 11:07:54 +0000 (+0800) Subject: mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_probe() X-Git-Tag: v5.13-rc1~106^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a683246a069b13bb661033b8cda0355686b85443;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Qiheng Lin Signed-off-by: Jassi Brar --- diff --git a/drivers/mailbox/arm_mhu_db.c b/drivers/mailbox/arm_mhu_db.c index 8eb66c4ecf5bf..8674153cc893b 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)