diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-08-16 13:55:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-22 15:58:15 +0300 |
commit | 6144922e17677204cbead4ee544699af69785a84 (patch) | |
tree | d5e0ebf7d9e2410902060f82206cdbe8590dae28 /security/keys/sysctl.c | |
parent | 4a8d99a409d3d194527674a896362992a171cd7b (diff) | |
download | linux-6144922e17677204cbead4ee544699af69785a84.tar.xz |
tty: tty_buffer: switch insert functions to size_t
All the functions accept size_t as a size argument. They finally return
the same size (or less). It is quite unexpected that they return 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)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230816105530.3335-6-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/keys/sysctl.c')
0 files changed, 0 insertions, 0 deletions