mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
tty: tty_buffer: better types in __tty_buffer_request_room()
* use bool for 'change' as it holds a result of a boolean. * use size_t for 'left', so it is the same as 'size' which it is compared to. Both are supposed to contain an unsigned value. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230816105530.3335-9-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b49a0ff732
commit
64365743b3
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ static int __tty_buffer_request_room(struct tty_port *port, size_t size,
|
|||
{
|
||||
struct tty_bufhead *buf = &port->buf;
|
||||
struct tty_buffer *b, *n;
|
||||
int left, change;
|
||||
size_t left;
|
||||
bool change;
|
||||
|
||||
b = buf->tail;
|
||||
if (!b->flags)
|
||||
|
|
Loading…
Add table
Reference in a new issue