aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-08-27 07:41:43 +0000
committerGreg Kroah-Hartman <[email protected]>2023-08-27 09:46:52 +0000
commitd88c3c2675f9d41c15297fa001e79812f4dcc9dd (patch)
treec0fccd1f8a9e450515a6514ec3ff4de9c8bd2ed3 /drivers/usb/class/cdc-acm.c
parenttty: n_tty: remove unsigned char casts from character constants (diff)
downloadkernel-d88c3c2675f9d41c15297fa001e79812f4dcc9dd.tar.gz
kernel-d88c3c2675f9d41c15297fa001e79812f4dcc9dd.zip
tty: n_tty: simplify chars_in_buffer()
The 'if' in chars_in_buffer() is misleadingly inverted. And since the only difference is the head used for computation, cache the head using ternary operator. And use that in return directly. 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