OSDN Git Service

tty: con3215, remove unneeded tty checks
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:21:49 +0000 (07:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:07 +0000 (09:34 +0100)
commit56e9d0f95ad0118750b67af8fbf2920a6f930faf
tree10c0bff785fba5f3cec1c84b625d0e3dda52d05a
parent51f62a311c6d34b9529448271bb34e705cc5868f
tty: con3215, remove unneeded tty checks

There is no need to check tty in these functions as it's always
non-NULL. So remove the tests.

Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: linux390@de.ibm.com
Cc: linux-s390@vger.kernel.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-19-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/char/con3215.c