mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-05 20:24:09 +08:00
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>
This commit is contained in:
parent
814be609ba
commit
5ca54404e6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user