projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4123147
)
serial: pic32: don't assign pic32_sport::cts_gpio twice
author
Jiri Slaby
<jslaby@suse.cz>
Tue, 3 May 2022 06:31:19 +0000
(08:31 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:39:19 +0000
(22:39 +0200)
sport->cts_gpio is first assigned -EINVAL and few lines below using
of_get_named_gpio(). Remove the first (useless) assignment.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link:
https://lore.kernel.org/r/20220503063122.20957-9-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/pic32_uart.c
b/drivers/tty/serial/pic32_uart.c
index c3b4fd0b5b76868b3bea9e1aa5e0a2be97a0b3cb..08e79d7f34f7d38f0608b5942e57b86bbc20845e 100644
(file)
--- a/
drivers/tty/serial/pic32_uart.c
+++ b/
drivers/tty/serial/pic32_uart.c
@@
-892,7
+892,6
@@
static int pic32_uart_probe(struct platform_device *pdev)
sport->irq_rx = irq_of_parse_and_map(np, 1);
sport->irq_tx = irq_of_parse_and_map(np, 2);
sport->clk = devm_clk_get(&pdev->dev, NULL);
- sport->cts_gpio = -EINVAL;
sport->dev = &pdev->dev;
/* Hardware flow control: gpios