tty: n_tty: use output character directly
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Sun, 27 Aug 2023 07:41:35 +0000 (09:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Aug 2023 09:46:51 +0000 (11:46 +0200)
commitd414034ec901c3821f17bd44b8eaaa5820253417
tree7b3824e3c9eb44be7eb6af8345a48f8e5821506e
parent0d029ab8a05b5a21af9425c02816f5d6de054b7e
tty: n_tty: use output character directly

There is no point to use a local variable to store the character when we
can pass it directly. This assignment comes from era when we used to do
get_user(c, b). We no longer need this, so fix this.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230827074147.2287-3-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c