aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-08-10 12:39:00 +0200
committerGreg Kroah-Hartman <[email protected]>2023-08-11 21:13:21 +0200
commite67d7f60d2382677c25de10b2e4d8d3717ace91f (patch)
tree852ae27d72f8717cb75485609ccccc59366f161b /net/lapb/lapb_timer.c
parentc70fd7c0e905b0a13b2d941f558d47105cb75821 (diff)
tty: gdm724x: simplify gdm_tty_write()
len and remain can never be negative in gdm_tty_write(). So remove such a check and move the check of remaining bytes to the loop condition. This way, the preceding 'if' is now superfluous too. Fix all that and make the code cleaner. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Cc: [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