tty: clean up legacy leftovers from n_tty line discipline
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 19 Jan 2021 21:46:28 +0000 (13:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 11:34:16 +0000 (12:34 +0100)
commite761cd8a7853a69fcb01aea9e0cce1982ca2c264
tree784868175c8cff17cf8cdcec67a2f42a62c4f3ff
parent98480f5c79819768390d4ecfb05b81a6c1e972ee
tty: clean up legacy leftovers from n_tty line discipline

commit 64a69892afadd6fffaeadc65427bb7601161139d upstream.

Back when the line disciplines did their own direct user accesses, they
had to deal with the data copy possibly failing in the middle.

Now that the user copy is done by the tty_io.c code, that failure case
no longer exists.

Remove the left-over error handling code that cannot trigger.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c