From: Ilpo Järvinen Date: Mon, 6 Jun 2022 10:04:32 +0000 (+0300) Subject: serial: sc16is7xx: Remove serial_rs485 assignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bbdcbc1301ce16d5cbabfbccaacb87f047a0a309;p=linux.git serial: sc16is7xx: Remove serial_rs485 assignment Serial core handles serial_rs485 assignment. It is safe to remove this assignment because sc16is7xx_reg_proc() takes port.lock at start (and sc16is7xx_reconf_rs485() would too). Signed-off-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20220606100433.13793-36-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index b3162dfe97b1e..2ceecaa4a4780 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -1143,7 +1143,6 @@ static int sc16is7xx_config_rs485(struct uart_port *port, return -EINVAL; } - port->rs485 = *rs485; one->config.flags |= SC16IS7XX_RECONF_RS485; kthread_queue_work(&s->kworker, &one->reg_work);