OSDN Git Service

tty: synclink_gt: don't allocate and pass dummy flags
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 20 Apr 2023 09:35:30 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 11:32:53 +0000 (13:32 +0200)
commitee13ea33e066507a374a0d091034f1150e9d0c07
treebd163cf1c88daef404c6dcdb3bc0bd7b3f06ff19
parent5c7e105cd156fc9adf5294a83623d7a40c15f9b9
tty: synclink_gt: don't allocate and pass dummy flags

In synclinc_gt, the flag_buf is allocated, zeroed and passed to ldisc's
receive_buf(). It is never written to, so it serves as a dummy buffer.
That's unneeded because all ldiscs accept NULL as flags. That NULL
resolves to the TTY_NORMAL flag.

So drop all this nonsense.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230420093530.13133-1-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/synclink_gt.c