diff options
author | Jiri Slaby (SUSE) <[email protected]> | 2023-08-10 11:15:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-11 21:12:47 +0200 |
commit | 6fcd3b67284b83af144dafe45c2766933101cc2b (patch) | |
tree | 984b529bb9bb702fb98a4d3216a93570b18171c7 /net/lapb/lapb_timer.c | |
parent | c3e5c706aefc3ceee941c1e7bd72084d3aeca37b (diff) |
tty: hso: simplify hso_serial_write()
There is no need for two more variables in hso_serial_write(). Switch to
min_t() and eliminate those.
Furthermore, the 'if-goto' is superfluous as memcpy() of zero count is a
nop. So is addition of zero. So remove the 'if-goto' completely.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[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