Skip to content

Commit 5ca5440

Browse files
ChenXiaoSongwilldeacon
authored andcommitted
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>
1 parent 814be60 commit 5ca5440

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/perf/qcom_l3_pmu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,8 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev)
767767

768768
memrc = platform_get_resource(pdev, IORESOURCE_MEM, 0);
769769
l3pmu->regs = devm_ioremap_resource(&pdev->dev, memrc);
770-
if (IS_ERR(l3pmu->regs)) {
771-
dev_err(&pdev->dev, "Can't map PMU @%pa\n", &memrc->start);
770+
if (IS_ERR(l3pmu->regs))
772771
return PTR_ERR(l3pmu->regs);
773-
}
774772

775773
qcom_l3_cache__init(l3pmu);
776774

0 commit comments

Comments
 (0)