projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
814be60
)
perf: qcom: Remove redundant dev_err call in qcom_l3_cache_pmu_probe()
author
ChenXiaoSong
<chenxiaosong2@huawei.com>
Tue, 8 Jun 2021 08:48:16 +0000
(16:48 +0800)
committer
Will Deacon
<will@kernel.org>
Tue, 8 Jun 2021 11:48:39 +0000
(12:48 +0100)
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>
drivers/perf/qcom_l3_pmu.c
patch
|
blob
|
history
diff --git
a/drivers/perf/qcom_l3_pmu.c
b/drivers/perf/qcom_l3_pmu.c
index 081273543c6bc84df4f7d95c7dca0691a3a56c61..c76f6f21d2a805afb2eeb24d445eb353900f600f 100644
(file)
--- 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);