[PATCH -next] drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev()

Zou Wei zou_wei at huawei.com
Mon May 10 23:42:44 PDT 2021


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 at huawei.com>
Signed-off-by: Zou Wei <zou_wei at huawei.com>
---
 drivers/perf/thunderx2_pmu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c
index 06a6d56..9e8f55a 100644
--- a/drivers/perf/thunderx2_pmu.c
+++ b/drivers/perf/thunderx2_pmu.c
@@ -818,7 +818,6 @@ static struct tx2_uncore_pmu *tx2_uncore_pmu_init_dev(struct device *dev,
 
 	base = devm_ioremap_resource(dev, &res);
 	if (IS_ERR(base)) {
-		dev_err(dev, "PMU type %d: Fail to map resource\n", type);
 		return NULL;
 	}
 
-- 
2.6.2




More information about the linux-arm-kernel mailing list