mxser: remove tty->driver_data NULL check
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:13 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:21 +0000 (18:33 +0100)
commit2fb19b957805e8d6b981cf339caecd7cb6a3893a
tree7a31eeb30edeca28f0d3911f1748b8cacdb59d13
parent5c338fbf21ebf2206a4d5abf3bc077c9a9018a79
mxser: remove tty->driver_data NULL check

Noone sets tty->driver_data to NULL in the driver, so there is no point
to check that in mxser_close(). Remove the check.

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