Skip to contentSkip to conversation

ata: libahci_platform: Get rid of dup message when IRQ can't be retrieved

PATCH Applied Andy Shevchenko 2 participants 2 messages Dec 17, 2021 – Dec 21, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ata: libahci_platform: Get rid of dup message when IRQ can't be retrieved

platform_get_irq() will print a message when it fails. No need to repeat this.

---
v2: left !irq check untouched (Damien, Sergey)

 drivers/ata/libahci_platform.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/ata/libahci_platform.c +1 -4
index bfa267e6f045..18296443ccba 100644
@@ -579,11 +579,8 @@ int ahci_platform_init_host(struct platform_device *pdev,
 	int i, irq, n_ports, rc;
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		if (irq != -EPROBE_DEFER)
-			dev_err(dev, "no irq\n");
+	if (irq < 0)
 		return irq;
-	}
 	if (!irq)
 		return -EINVAL;
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · Andy Shevchenko

platform_get_irq() will print a message when it fails. No need to repeat this.

---
v2: left !irq check untouched (Damien, Sergey)

 drivers/ata/libahci_platform.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/ata/libahci_platform.c +0 -0
index bfa267e6f045..18296443ccba 100644
@@ -579,11 +579,8 @@ int ahci_platform_init_host(struct platform_device *pdev,
 	int i, irq, n_ports, rc;
 

drivers/ata/libahci_platform.c int ahci_platform_init_host(struct platform_device *pdev, · line 586

Quoted 10 lines
drivers/ata/libahci_platform.c +1 -4
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		if (irq != -EPROBE_DEFER)
-			dev_err(dev, "no irq\n");
+	if (irq < 0)
 		return irq;
-	}
 	if (!irq)
 		return -EINVAL;
 

Applied to for-5.17. Thanks !

Signature · 2 lines
Damien Le Moal
Western Digital Research