diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-05-11 14:42:44 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-05-25 18:57:19 +0100 |
commit | bf2367aaed73f06a43c0be3c61dafdc59f986161 (patch) | |
tree | c95731273a108f197caf371a2d7291c72dfb2203 /drivers | |
parent | 77b06ddc04354293f746d0434f00700110d3392d (diff) | |
download | linux-bf2367aaed73f06a43c0be3c61dafdc59f986161.tar.bz2 |
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')
-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) |