forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/arch/um/drivers/chan_kern.c
....@@ -1,6 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com)
3
- * Licensed under the GPL
44 */
55
66 #include <linux/slab.h>
....@@ -247,12 +247,6 @@
247247 deactivate_fd(chan->fd, irq);
248248 }
249249
250
-void reactivate_chan(struct chan *chan, int irq)
251
-{
252
- if (chan && chan->enabled)
253
- reactivate_fd(chan->fd, irq);
254
-}
255
-
256250 int write_chan(struct chan *chan, const char *buf, int len,
257251 int write_irq)
258252 {
....@@ -264,8 +258,6 @@
264258 n = chan->ops->write(chan->fd, buf, len, chan->data);
265259 if (chan->primary) {
266260 ret = n;
267
- if ((ret == -EAGAIN) || ((ret >= 0) && (ret < len)))
268
- reactivate_fd(chan->fd, write_irq);
269261 }
270262 return ret;
271263 }
....@@ -563,8 +555,6 @@
563555 tty_insert_flip_char(port, c, TTY_NORMAL);
564556 } while (err > 0);
565557
566
- if (err == 0)
567
- reactivate_fd(chan->fd, irq);
568558 if (err == -EIO) {
569559 if (chan->primary) {
570560 tty_port_tty_hangup(&line->port, false);