diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-08-10 12:14:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-11 22:12:46 +0300 |
commit | ccc8dc00a24bb657b6a6f8adbfbb535365b4ba3d (patch) | |
tree | ef766b271ec111c688f094c40b5de25b78204c6a /drivers/tty/tty_ldsem.c | |
parent | a32a672dc5aaec1ccd246b3a27cee8a367b822c1 (diff) | |
download | linux-ccc8dc00a24bb657b6a6f8adbfbb535365b4ba3d.tar.xz |
tty: use min() in iterate_tty_write()
It simplifies the code. The "price" is we have to unify 'chunk' to be
size_t the same as 'count' is. But that change is actually correct.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230810091510.13006-24-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ldsem.c')
0 files changed, 0 insertions, 0 deletions