net: hso: drop unused function argument
_hso_serial_set_termios() doesn't use it's second argument, so it can be dropped. Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Link: https://lore.kernel.org/r/20210811171321.18317-1-paskripkin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
afa79d08c6
commit
b06a1ffe17
|
@ -1079,8 +1079,7 @@ static void hso_init_termios(struct ktermios *termios)
|
||||||
tty_termios_encode_baud_rate(termios, 115200, 115200);
|
tty_termios_encode_baud_rate(termios, 115200, 115200);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _hso_serial_set_termios(struct tty_struct *tty,
|
static void _hso_serial_set_termios(struct tty_struct *tty)
|
||||||
struct ktermios *old)
|
|
||||||
{
|
{
|
||||||
struct hso_serial *serial = tty->driver_data;
|
struct hso_serial *serial = tty->driver_data;
|
||||||
|
|
||||||
|
@ -1262,7 +1261,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp)
|
||||||
if (serial->port.count == 1) {
|
if (serial->port.count == 1) {
|
||||||
serial->rx_state = RX_IDLE;
|
serial->rx_state = RX_IDLE;
|
||||||
/* Force default termio settings */
|
/* Force default termio settings */
|
||||||
_hso_serial_set_termios(tty, NULL);
|
_hso_serial_set_termios(tty);
|
||||||
tasklet_setup(&serial->unthrottle_tasklet,
|
tasklet_setup(&serial->unthrottle_tasklet,
|
||||||
hso_unthrottle_tasklet);
|
hso_unthrottle_tasklet);
|
||||||
result = hso_start_serial_device(serial->parent, GFP_KERNEL);
|
result = hso_start_serial_device(serial->parent, GFP_KERNEL);
|
||||||
|
@ -1394,7 +1393,7 @@ static void hso_serial_set_termios(struct tty_struct *tty, struct ktermios *old)
|
||||||
/* the actual setup */
|
/* the actual setup */
|
||||||
spin_lock_irqsave(&serial->serial_lock, flags);
|
spin_lock_irqsave(&serial->serial_lock, flags);
|
||||||
if (serial->port.count)
|
if (serial->port.count)
|
||||||
_hso_serial_set_termios(tty, old);
|
_hso_serial_set_termios(tty);
|
||||||
else
|
else
|
||||||
tty->termios = *old;
|
tty->termios = *old;
|
||||||
spin_unlock_irqrestore(&serial->serial_lock, flags);
|
spin_unlock_irqrestore(&serial->serial_lock, flags);
|
||||||
|
|
Loading…
Reference in New Issue