Commit b9c010df authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

n_hdlc: remove unneeded ifdef

TTY_NO_WRITE_SPLIT is (always) defined in linux/tty.h, so no need to
check for it.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084118.26491-18-jslaby@suse.czSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f238298
...@@ -244,10 +244,8 @@ static int n_hdlc_tty_open (struct tty_struct *tty) ...@@ -244,10 +244,8 @@ static int n_hdlc_tty_open (struct tty_struct *tty)
tty->disc_data = n_hdlc; tty->disc_data = n_hdlc;
tty->receive_room = 65536; tty->receive_room = 65536;
#if defined(TTY_NO_WRITE_SPLIT)
/* change tty_io write() to not split large writes into 8K chunks */ /* change tty_io write() to not split large writes into 8K chunks */
set_bit(TTY_NO_WRITE_SPLIT,&tty->flags); set_bit(TTY_NO_WRITE_SPLIT,&tty->flags);
#endif
/* flush receive data from driver */ /* flush receive data from driver */
tty_driver_flush_buffer(tty); tty_driver_flush_buffer(tty);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment