Skip to content

Commit 1f0d97b

Browse files
Tang Binwilldeacon
authored andcommitted
drivers/perf: arm_spe_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 5810f00 commit 1f0d97b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/perf/arm_spe_pmu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,10 +1133,8 @@ static int arm_spe_pmu_irq_probe(struct arm_spe_pmu *spe_pmu)
11331133
struct platform_device *pdev = spe_pmu->pdev;
11341134
int irq = platform_get_irq(pdev, 0);
11351135

1136-
if (irq < 0) {
1137-
dev_err(&pdev->dev, "failed to get IRQ (%d)\n", irq);
1136+
if (irq < 0)
11381137
return -ENXIO;
1139-
}
11401138

11411139
if (!irq_is_percpu(irq)) {
11421140
dev_err(&pdev->dev, "expected PPI but got SPI (%d)\n", irq);

0 commit comments

Comments
 (0)