diff options
author | Jiri Slaby (SUSE) <[email protected]> | 2023-08-16 12:55:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-22 14:58:15 +0200 |
commit | 2ce2983c24c11beaeb6ef6da93bf7228679bd08b (patch) | |
tree | 19ac746b96621130e6ba27afbafe17cbdc46fc2a /net/lapb/lapb_timer.c | |
parent | 6144922e17677204cbead4ee544699af69785a84 (diff) |
tty: tty_buffer: let tty_prepare_flip_string() return size_t
The same as in the previous patch, tty_prepare_flip_string() accepts
size_t as an size argument. It returns the same size (or less). It is
unexpected that it returns a signed value and can confuse users to check
for negative values.
Instead, return the same size_t as accepted to make clear we return
values >= 0, where zero in fact means failure.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions