Commit a683246a authored by Qiheng Lin's avatar Qiheng Lin Committed by Jassi Brar

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarQiheng Lin <linqiheng@huawei.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent 6457f4cd
...@@ -278,10 +278,8 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id) ...@@ -278,10 +278,8 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id)
return -ENOMEM; return -ENOMEM;
mhu->base = devm_ioremap_resource(dev, &adev->res); mhu->base = devm_ioremap_resource(dev, &adev->res);
if (IS_ERR(mhu->base)) { if (IS_ERR(mhu->base))
dev_err(dev, "ioremap failed\n");
return PTR_ERR(mhu->base); return PTR_ERR(mhu->base);
}
chans = devm_kcalloc(dev, max_chans, sizeof(*chans), GFP_KERNEL); chans = devm_kcalloc(dev, max_chans, sizeof(*chans), GFP_KERNEL);
if (!chans) if (!chans)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment