[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1620715364-107460-1-git-send-email-zou_wei@huawei.com>
Date: Tue, 11 May 2021 14:42:44 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <will@...nel.org>, <mark.rutland@....com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, Zou Wei <zou_wei@...wei.com>
Subject: [PATCH -next] drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev()
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@...wei.com>
Signed-off-by: Zou Wei <zou_wei@...wei.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
Powered by blists - more mailing lists