diff options
author | Lino Sanfilippo <l.sanfilippo@kunbus.com> | 2022-07-10 18:44:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-14 16:34:23 +0200 |
commit | 184842622c97da2f88f365a981af05432baa5385 (patch) | |
tree | b54e57f65e4e52760c183e461732aa71dba54c1e /net/netfilter/nft_immediate.c | |
parent | 996fd3cf9c0f37d17867ccc26f8b746169463fcd (diff) | |
download | linux-stable-184842622c97da2f88f365a981af05432baa5385.tar.gz linux-stable-184842622c97da2f88f365a981af05432baa5385.tar.bz2 linux-stable-184842622c97da2f88f365a981af05432baa5385.zip |
serial: ar933x: Remove superfluous code in ar933x_config_rs485()
In ar933x_config_rs485() the check for the RTS GPIO is not needed since in
case the GPIO is not available at driver init ar933x_no_rs485 is assigned
to port->rs485_supported and this function is never called. So remove the
check.
Also in uart_set_rs485_config() the serial core already assigns the passed
serial_rs485 struct to the uart port. So remove the assignment in the
drivers rs485_config() function to avoid redundancy.
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Link: https://lore.kernel.org/r/20220710164442.2958979-3-LinoSanfilippo@gmx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netfilter/nft_immediate.c')
0 files changed, 0 insertions, 0 deletions