summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2021-03-13 15:48:26 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-23 10:21:06 +0100
commitb9edc6823d18751a0070f915da097705074a30f0 (patch)
treebd9a7b763612273b7357410b0c33900deab49ac2 /drivers/tty/serial
parentc69b11f3a6d1d205ad4da620baa93fe594aaed7f (diff)
downloadlinux-b9edc6823d18751a0070f915da097705074a30f0.tar.bz2
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 <wangqing@vivo.com> Link: https://lore.kernel.org/r/1615621707-2330-1-git-send-email-wangqing@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/8250/8250_fsl.c5
1 files changed, 1 insertions, 4 deletions
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));