projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69b11f
)
tty: serial: 8250: delete redundant printing of return value
author
Wang Qing
<wangqing@vivo.com>
Sat, 13 Mar 2021 07:48:26 +0000
(15:48 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 09:21:06 +0000
(10:21 +0100)
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>
drivers/tty/serial/8250/8250_fsl.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/8250/8250_fsl.c
b/drivers/tty/serial/8250/8250_fsl.c
index fbcc90c31ca11e5814fecc05b36b982159df1275..cd19400b65ae924f23466201692e0adb39351674 100644
(file)
--- 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));