From: Wang Qing Date: Sat, 13 Mar 2021 07:48:26 +0000 (+0800) Subject: tty: serial: 8250: delete redundant printing of return value X-Git-Tag: io_uring-5.13-2021-05-07~87^2~117 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b9edc6823d18751a0070f915da097705074a30f0;p=linux-block.git 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. Signed-off-by: Wang Qing Link: https://lore.kernel.org/r/1615621707-2330-1-git-send-email-wangqing@vivo.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_fsl.c b/drivers/tty/serial/8250/8250_fsl.c index fbcc90c31ca1..cd19400b65ae 100644 --- a/drivers/tty/serial/8250/8250_fsl.c +++ b/drivers/tty/serial/8250/8250_fsl.c @@ -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));