linux-stable/drivers
Jiri Slaby (SUSE) d88c3c2675 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)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230827074147.2287-11-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-27 11:46:52 +02:00
..
accel One EPROBE_DEFER handling fix for the JDI LT070ME05000, a timing fix for 2023-08-18 06:08:58 +10:00
accessibility
acpi platform-drivers-x86 for v6.5-4 2023-08-13 08:50:26 -07:00
amba
android
ata
atm
auxdisplay
base
bcma
block block-6.5-2023-08-19 2023-08-19 17:31:46 +02:00
bluetooth
bus
cdrom
cdx
char Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio gpiolib: fix reference leaks when removing GPIO chips still in use 2023-08-16 13:35:50 +02:00
gpu Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue 2023-08-14 18:17:13 +02:00
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
leds
macintosh
mailbox
mcb
md
media media fixes for v6.5-rc7 2023-08-19 13:13:55 +02:00
memory
memstick
message
mfd
misc Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
mmc Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
most
mtd
mux
net Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
pci
pcmcia
peci
perf
phy
pinctrl
platform platform/x86: lenovo-ymc: Only bind on machines with a convertible DMI chassis-type 2023-08-13 14:50:25 +02:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
sbus
scsi SCSI fixes on 20230813 2023-08-13 08:43:26 -07:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging tty: gdm724x: use min_t() for size_t varable and a constant 2023-08-22 14:53:53 +02:00
target
tc
tee
thermal
thunderbolt
tty tty: n_tty: simplify chars_in_buffer() 2023-08-27 11:46:52 +02:00
ufs
uio
usb Merge commit b320441c04 ("Merge tag 'tty-6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next 2023-08-20 14:29:37 +02:00
vdpa
vfio
vhost
video fbdev: goldfishfb: Do not check 0 for platform_get_irq() 2023-08-15 23:39:33 +02:00
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile