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>
struct raw3215_info *raw;
int i, written;
- if (!tty)
- return 0;
raw = (struct raw3215_info *) tty->driver_data;
written = count;
while (count > 0) {
{
struct raw3215_info *raw;
- if (!tty)
- return 0;
raw = (struct raw3215_info *) tty->driver_data;
raw3215_putchar(raw, ch);
return 1;