tty: n_tty: use 'num' for writes' counts
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Sun, 27 Aug 2023 07:41:36 +0000 (09:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Aug 2023 09:46:51 +0000 (11:46 +0200)
commit68d90d5f7b68652287fbcbcfe245c2c8b667d021
tree323011404d42c8931d245211ccaa9ec72616364b
parentd414034ec901c3821f17bd44b8eaaa5820253417
tty: n_tty: use 'num' for writes' counts

We have a separate misnomer 'c' to hold the retuned value from
tty->ops->write(). Instead, use 'num' already defined on another place
(and already properly typed).

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