mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
tty: tty_buffer: use bool for 'restart' in tty_buffer_unlock_exclusive()
It's a boolean value, so no need for 'int' there. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230919085156.1578-12-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c38f45ef5f
commit
083cfcf383
@ -69,12 +69,11 @@ EXPORT_SYMBOL_GPL(tty_buffer_lock_exclusive);
|
||||
void tty_buffer_unlock_exclusive(struct tty_port *port)
|
||||
{
|
||||
struct tty_bufhead *buf = &port->buf;
|
||||
int restart;
|
||||
|
||||
restart = buf->head->commit != buf->head->read;
|
||||
bool restart = buf->head->commit != buf->head->read;
|
||||
|
||||
atomic_dec(&buf->priority);
|
||||
mutex_unlock(&buf->lock);
|
||||
|
||||
if (restart)
|
||||
queue_work(system_unbound_wq, &buf->work);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user