thermal/drivers/bcm2835: Remove redundant dev_err call in bcm2835_thermal_probe()
authorRuiqi Gong <gongruiqi1@huawei.com>
Thu, 8 Apr 2021 10:03:29 +0000 (06:03 -0400)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Apr 2021 06:58:47 +0000 (08:58 +0200)
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: Ruiqi Gong <gongruiqi1@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210408100329.7585-1-gongruiqi1@huawei.com
drivers/thermal/broadcom/bcm2835_thermal.c

index 3199977..c8e4344 100644 (file)
@@ -184,7 +184,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
        data->regs = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(data->regs)) {
                err = PTR_ERR(data->regs);
-               dev_err(&pdev->dev, "Could not get registers: %d\n", err);
                return err;
        }