perf: qcom: Remove redundant dev_err call in qcom_l3_cache_pmu_probe()
Subsystems (2)
PATCH RESEND 1/1 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 <[email protected]>
Signed-off-by ChenXiaoSong <[email protected]>
--- drivers/perf/qcom_l3_pmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/perf/qcom_l3_pmu.c +1 -3
@@ -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);
Signature · 1 line
2.25.4
Quoted 3 lines · ChenXiaoSong
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.
Applied to will (for-next/perf), thanks!
[1/1] perf: qcom: Remove redundant dev_err call in qcom_l3_cache_pmu_probe()
https://git.kernel.org/will/c/5ca54404e68d
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev