tty: drop useless variable initialisation in tty_kopen()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 17 Dec 2019 07:50:40 +0000 (08:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 13:42:45 +0000 (14:42 +0100)
commitf1d31743a195155c319a00d73299ff1630a532c4
tree6e464683ebf7912d6a2e2b1cd7339806fa695ac2
parent3578163030782a24e75ba48aba1cfa431dc9100a
tty: drop useless variable initialisation in tty_kopen()

The driver variable is assigned to unconditionally and not used before.
So there is no need to explicitly initialize it at the start of
tty_kopen().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20191217075040.8020-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c