Skip to content

Commit

Permalink
mxser: remove tty parameter from mxser_receive_chars_new()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Nov 25, 2021
1 parent c6693e6 commit 9dd6f30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/tty/mxser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9dd6f30

Please sign in to comment.