[PATCH -next] drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev()
From: Zou Wei
Date: Tue May 11 2021 - 02:26:00 EST
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@xxxxxxxxxx>
Signed-off-by: Zou Wei <zou_wei@xxxxxxxxxx>
---
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