diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-05-11 08:42:44 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-05-25 19:57:19 +0200 |
commit | bf2367aaed73f06a43c0be3c61dafdc59f986161 (patch) | |
tree | c95731273a108f197caf371a2d7291c72dfb2203 /drivers/perf/thunderx2_pmu.c | |
parent | perf/hisi: Use irq_set_affinity() (diff) | |
download | linux-bf2367aaed73f06a43c0be3c61dafdc59f986161.tar.xz linux-bf2367aaed73f06a43c0be3c61dafdc59f986161.zip |
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@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1620715364-107460-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/thunderx2_pmu.c')
-rw-r--r-- | drivers/perf/thunderx2_pmu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c index 06a6d569b0b5..fc1a376ee906 100644 --- a/drivers/perf/thunderx2_pmu.c +++ b/drivers/perf/thunderx2_pmu.c @@ -817,10 +817,8 @@ 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); + if (IS_ERR(base)) return NULL; - } tx2_pmu = devm_kzalloc(dev, sizeof(*tx2_pmu), GFP_KERNEL); if (!tx2_pmu) |