diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2023-08-10 09:14:58 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-08-11 19:12:46 +0000 |
| commit | 24b01c5d497ba422f34d381a693d0592e95ad5c3 (patch) | |
| tree | 5fd5a12d4f792219a7b1148eed726b8f87fa21af /drivers/usb/class/cdc-acm.c | |
| parent | tty: use min() in iterate_tty_write() (diff) | |
| download | kernel-24b01c5d497ba422f34d381a693d0592e95ad5c3.tar.gz kernel-24b01c5d497ba422f34d381a693d0592e95ad5c3.zip | |
tty: use ssize_t for iterate_tty_read() returned type
tty_read() is supposed to return ssize_t. It takes the return value from
iterate_tty_read(). That currently returns int. On the top of that,
iterate_tty_write() already returns ssize_t. So switch
iterate_tty_read() to ssize_t too, so that all three are consistent.
This means 'i' in tty_read() changes its type too. And while changing
that, rename this generic 'i' to more dedicated 'ret'.
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 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
