Commit d4326bc9 authored by Linus Torvalds's avatar Linus Torvalds Committed by Zheng Zengkai
Browse files

tty: clean up legacy leftovers from n_tty line discipline



stable inclusion
from stable-5.10.21
commit e761cd8a7853a69fcb01aea9e0cce1982ca2c264
bugzilla: 50609

--------------------------------

commit 64a69892 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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 2eb943c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment