Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
perf: qcom: Remove redundant dev_err call in qcom_l3_cache_pmu_probe()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: ChenXiaoSong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
ChenXiaoSong authored and willdeacon committed Jun 8, 2021
1 parent 814be60 commit 5ca5440
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/perf/qcom_l3_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5ca5440

Please sign in to comment.