tty: localise ptychar and make it const
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:22:06 +0000 (07:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:09 +0000 (09:34 +0100)
commita846dcf9d7295dd45493002fdde081f1667a85d3
treea5c6053e78d9357ec7620d5527276a74edb8411c
parenta872ab4d6d191cca1ce84b945e394bd6a8d84dd9
tty: localise ptychar and make it const

ptychar was not const, so mark it as such. And move this variable to the
only place where it's used.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-36-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c