diff mbox series

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

Message ID 1620715364-107460-1-git-send-email-zou_wei@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev() | expand

Commit Message

Zou Wei May 11, 2021, 6:42 a.m. UTC
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: Zou Wei <zou_wei@huawei.com>
---
 drivers/perf/thunderx2_pmu.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Will Deacon May 25, 2021, 6:58 p.m. UTC | #1
On Tue, 11 May 2021 14:42:44 +0800, Zou Wei wrote:
> There is a error message within devm_ioremap_resource
> already, so remove the dev_err call to avoid redundant
> error message.

Applied to will (for-next/perf), thanks!

[1/1] drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev()
      https://git.kernel.org/will/c/bf2367aaed73

Cheers,
diff mbox series

Patch

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;
 	}