Skip to contentSkip to conversation

tty: serial: 8250: delete redundant printing of return value

PATCH New Wang Qing 1 participant 1 message Mar 13, 2021 TTY layer and serial drivers

lore
Share & tools
lore

Wang Qing

author
#0 lore raw

PATCH 1/1 tty: serial: 8250: delete redundant printing of return value

platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all.

---
 drivers/tty/serial/8250/8250_fsl.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/tty/serial/8250/8250_fsl.c +1 -4
index fbcc90c..cd19400
@@ -104,11 +104,8 @@ static int fsl8250_acpi_probe(struct platform_device *pdev)
 	}
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		if (irq != -EPROBE_DEFER)
-			dev_err(dev, "cannot get irq\n");
+	if (irq < 0)
 		return irq;
-	}
 
 	memset(&port8250, 0, sizeof(port8250));
 
Signature · 1 line
2.7.4