projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f23829
)
n_hdlc: remove unneeded ifdef
author
Jiri Slaby
<jslaby@suse.cz>
Wed, 19 Feb 2020 08:41:12 +0000
(09:41 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 21 Feb 2020 09:24:34 +0000
(10:24 +0100)
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>
drivers/tty/n_hdlc.c
patch
|
blob
|
history
diff --git
a/drivers/tty/n_hdlc.c
b/drivers/tty/n_hdlc.c
index c4fe09124185be80ab1e1be1fc0245e28242cbae..cf8485beaccd31544a9e7952c01ae1adc016747c 100644
(file)
--- 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);