serial: pic32: don't assign pic32_sport::cts_gpio twice
authorJiri Slaby <jslaby@suse.cz>
Tue, 3 May 2022 06:31:19 +0000 (08:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:39:19 +0000 (22:39 +0200)
commit0ed55be47c99cb156f96ad95649760d474d9c56c
tree8f59b0a60362fead165350711eae006fe1959afb
parent412314720aec9226e7e423395d27ca17d5dd3b24
serial: pic32: don't assign pic32_sport::cts_gpio twice

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