diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-11-18 10:19:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-25 20:31:32 +0300 |
commit | 463d4c74bffd7209914bf1eefb6d2fa991422863 (patch) | |
tree | b85abbe8e3ef7f2976bb34c35737a609e8b99d9c /drivers/tty/tty_io.c | |
parent | ea502201da45d3737a77d17e96d952d0a85cdc7d (diff) | |
download | linux-463d4c74bffd7209914bf1eefb6d2fa991422863.tar.xz |
tty: remove TTY_SOFT_SAK part from __do_SAK()
Remove the TTY_SOFT_SAK part. It is never defined, so this is only
confusing.
It was actually never defined since its introduction in
0.99.14g.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118071911.12059-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 6616d4a0d41d..829944dfaf48 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -3028,9 +3028,6 @@ static int this_tty(const void *t, struct file *file, unsigned fd) */ void __do_SAK(struct tty_struct *tty) { -#ifdef TTY_SOFT_SAK - tty_hangup(tty); -#else struct task_struct *g, *p; struct pid *session; int i; @@ -3074,7 +3071,6 @@ void __do_SAK(struct tty_struct *tty) } while_each_thread(g, p); read_unlock(&tasklist_lock); put_pid(session); -#endif } static void do_SAK_work(struct work_struct *work) |