]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
n_tty: Rename tail to old_tail in n_tty_read()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 11 Nov 2022 14:25:02 +0000 (16:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:29 +0000 (10:22 +0200)
commitd262770b95c717353d5beb3e6cc1abce98d59f30
treeaccd5059f48be043a969d3960bd9d5dafd229dd0
parent7738335d73d0686ec8995e0448e5d1b48cffb2a4
n_tty: Rename tail to old_tail in n_tty_read()

[ Upstream commit 947d66b68f3c4e7cf8f3f3500807b9d2a0de28ce ]

The local tail variable in n_tty_read() is used for one purpose, it
keeps the old tail. Thus, rename it appropriately to improve code
readability.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/22b37499-ff9a-7fc1-f6e0-58411328d122@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 4903fde8047a ("tty: fix hang on tty device with no_room set")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/n_tty.c