OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5810f00
)
drivers/perf: arm_spe_pmu: Avoid duplicate printouts
author
Tang Bin
<tangbin@cmss.chinamobile.com>
Thu, 2 Apr 2020 12:03:30 +0000
(20:03 +0800)
committer
Will Deacon
<will@kernel.org>
Thu, 30 Apr 2020 20:49:32 +0000
(21:49 +0100)
platform_get_irq() already screams on failure, so the redundant call to
dev_err() can be removed.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link:
https://lore.kernel.org/r/20200402120330.19468-1-tangbin@cmss.chinamobile.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_spe_pmu.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm_spe_pmu.c
b/drivers/perf/arm_spe_pmu.c
index
b72c048
..
58a710e
100644
(file)
--- a/
drivers/perf/arm_spe_pmu.c
+++ b/
drivers/perf/arm_spe_pmu.c
@@
-1133,10
+1133,8
@@
static int arm_spe_pmu_irq_probe(struct arm_spe_pmu *spe_pmu)
struct platform_device *pdev = spe_pmu->pdev;
int irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(&pdev->dev, "failed to get IRQ (%d)\n", irq);
+ if (irq < 0)
return -ENXIO;
- }
if (!irq_is_percpu(irq)) {
dev_err(&pdev->dev, "expected PPI but got SPI (%d)\n", irq);