summaryrefslogtreecommitdiff
path: root/drivers/tty/n_hdlc.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-02-19 11:41:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-21 12:24:34 +0300
commitb9c010dfe85e2e91bbf2b625b680f340346ad443 (patch)
treeccc717861ba73750424ae12730363f9252cdcf80 /drivers/tty/n_hdlc.c
parent0f2382981442504d6b92fc300312646aaa5fd6b3 (diff)
downloadlinux-b9c010dfe85e2e91bbf2b625b680f340346ad443.tar.xz
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: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200219084118.26491-18-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_hdlc.c')
-rw-r--r--drivers/tty/n_hdlc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c
index c4fe09124185..cf8485beaccd 100644
--- a/drivers/tty/n_hdlc.c
+++ b/drivers/tty/n_hdlc.c
@@ -244,10 +244,8 @@ static int n_hdlc_tty_open (struct tty_struct *tty)
tty->disc_data = n_hdlc;
tty->receive_room = 65536;
-#if defined(TTY_NO_WRITE_SPLIT)
/* change tty_io write() to not split large writes into 8K chunks */
set_bit(TTY_NO_WRITE_SPLIT,&tty->flags);
-#endif
/* flush receive data from driver */
tty_driver_flush_buffer(tty);