mxser: remove tty parameter from mxser_receive_chars_new()
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:21 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:22 +0000 (18:33 +0100)
After the previous change (no plays with of tty->receive_room), the tty
parameter is unused.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118073125.12283-16-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c

index 2359b4aa68afb89c0a3e5207f1f149883775fbe7..10862d4bb8857100b388b9be044f5a541d884254 100644 (file)
@@ -1491,8 +1491,7 @@ static int mxser_rs_break(struct tty_struct *tty, int break_state)
        return 0;
 }
 
-static bool mxser_receive_chars_new(struct tty_struct *tty,
-               struct mxser_port *port, u8 status)
+static bool mxser_receive_chars_new(struct mxser_port *port, u8 status)
 {
        enum mxser_must_hwid hwid = port->board->must_hwid;
        u8 gdl;
@@ -1570,7 +1569,7 @@ static u8 mxser_receive_chars_old(struct tty_struct *tty,
 static u8 mxser_receive_chars(struct tty_struct *tty,
                struct mxser_port *port, u8 status)
 {
-       if (!mxser_receive_chars_new(tty, port, status))
+       if (!mxser_receive_chars_new(port, status))
                status = mxser_receive_chars_old(tty, port, status);
 
        tty_flip_buffer_push(&port->port);