We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704554f commit a790c80Copy full SHA for a790c80
components/drivers/tty/pty.c
@@ -183,8 +183,6 @@ static int ptmx_open(struct dfs_file *fd)
183
struct tty_struct *tty = RT_NULL;
184
struct tty_struct *pts = RT_NULL;
185
struct tty_ldisc *ld = RT_NULL;
186
- struct rt_lwp *lwp = RT_NULL;
187
- struct rt_wqueue *wq = RT_NULL;
188
189
tty = (struct tty_struct *)fd->vnode->data;
190
RT_ASSERT(tty != RT_NULL);
@@ -203,9 +201,6 @@ static int ptmx_open(struct dfs_file *fd)
203
201
return -1;
204
202
}
205
pts_index++;
206
- lwp = lwp_self();
207
- wq = wait_queue_get(lwp, tty);
208
- pts->wait_queue = *wq;
209
tty->other_struct = pts;
210
211
ld = tty->ldisc;
0 commit comments