Skip to content

Commit 5810f00

Browse files
Tang Binwilldeacon
authored andcommitted
drivers/perf: arm_dsu_pmu: Avoid duplicate printouts
platform_get_irq() already screams on failure, so the redundant call to dev_err() can be removed. Signed-off-by: Tang Bin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 6a8b55e commit 5810f00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/perf/arm_dsu_pmu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,8 @@ static int dsu_pmu_device_probe(struct platform_device *pdev)
690690
}
691691

692692
irq = platform_get_irq(pdev, 0);
693-
if (irq < 0) {
694-
dev_warn(&pdev->dev, "Failed to find IRQ\n");
693+
if (irq < 0)
695694
return -EINVAL;
696-
}
697695

698696
name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s_%d",
699697
PMUNAME, atomic_inc_return(&pmu_idx));

0 commit comments

Comments
 (0)