summaryrefslogtreecommitdiff
path: root/drivers/perf
diff options
context:
space:
mode:
authorChenXiaoSong <chenxiaosong2@huawei.com>2021-06-08 11:48:16 +0300
committerWill Deacon <will@kernel.org>2021-06-08 14:48:39 +0300
commit5ca54404e68de8560ca15e8d0e6b625fd05ceeaf (patch)
tree92ab265ce8281b9f894da506f476725977a65db1 /drivers/perf
parent814be609baae62aaa6c02fa6f3ad66cff32a6d15 (diff)
downloadlinux-5ca54404e68de8560ca15e8d0e6b625fd05ceeaf.tar.xz
perf: qcom: Remove redundant dev_err call in qcom_l3_cache_pmu_probe()
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: ChenXiaoSong <chenxiaosong2@huawei.com> Link: https://lore.kernel.org/r/20210608084816.1046485-1-chenxiaosong2@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf')
-rw-r--r--drivers/perf/qcom_l3_pmu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/perf/qcom_l3_pmu.c b/drivers/perf/qcom_l3_pmu.c
index 081273543c6b..c76f6f21d2a8 100644
--- a/drivers/perf/qcom_l3_pmu.c
+++ b/drivers/perf/qcom_l3_pmu.c
@@ -767,10 +767,8 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev)
memrc = platform_get_resource(pdev, IORESOURCE_MEM, 0);
l3pmu->regs = devm_ioremap_resource(&pdev->dev, memrc);
- if (IS_ERR(l3pmu->regs)) {
- dev_err(&pdev->dev, "Can't map PMU @%pa\n", &memrc->start);
+ if (IS_ERR(l3pmu->regs))
return PTR_ERR(l3pmu->regs);
- }
qcom_l3_cache__init(l3pmu);