]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_probe()
authorQiheng Lin <linqiheng@huawei.com>
Fri, 9 Apr 2021 11:07:54 +0000 (19:07 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 14 Apr 2021 01:07:36 +0000 (20:07 -0500)
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>
drivers/mailbox/arm_mhu_db.c

index 8eb66c4ecf5bf4b6dcd955fb9a408576c1b64562..8674153cc893b66a67e0025b09336b7839b1cac8 100644 (file)
@@ -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)