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 c38f45e commit 083cfcfCopy full SHA for 083cfcf
drivers/tty/tty_buffer.c
@@ -69,12 +69,11 @@ EXPORT_SYMBOL_GPL(tty_buffer_lock_exclusive);
69
void tty_buffer_unlock_exclusive(struct tty_port *port)
70
{
71
struct tty_bufhead *buf = &port->buf;
72
- int restart;
73
-
74
- restart = buf->head->commit != buf->head->read;
+ bool restart = buf->head->commit != buf->head->read;
75
76
atomic_dec(&buf->priority);
77
mutex_unlock(&buf->lock);
+
78
if (restart)
79
queue_work(system_unbound_wq, &buf->work);
80
}
0 commit comments