hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/um/drivers/line.c
....@@ -1,6 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3
- * Licensed under the GPL
44 */
55
66 #include <linux/irqreturn.h>
....@@ -184,11 +184,6 @@
184184 line_flush_buffer(tty);
185185 }
186186
187
-int line_put_char(struct tty_struct *tty, unsigned char ch)
188
-{
189
- return line_write(tty, &ch, sizeof(ch));
190
-}
191
-
192187 int line_write(struct tty_struct *tty, const unsigned char *buf, int len)
193188 {
194189 struct line *line = tty->driver_data;
....@@ -235,14 +230,6 @@
235230
236231 line->throttled = 0;
237232 chan_interrupt(line, line->driver->read_irq);
238
-
239
- /*
240
- * Maybe there is enough stuff pending that calling the interrupt
241
- * throttles us again. In this case, line->throttled will be 1
242
- * again and we shouldn't turn the interrupt back on.
243
- */
244
- if (!line->throttled)
245
- reactivate_chan(line->chan_in, line->driver->read_irq);
246233 }
247234
248235 static irqreturn_t line_write_interrupt(int irq, void *data)
....@@ -667,8 +654,6 @@
667654 tty_kref_put(tty);
668655 }
669656 out:
670
- if (winch->fd != -1)
671
- reactivate_fd(winch->fd, WINCH_IRQ);
672657 return IRQ_HANDLED;
673658 }
674659