diff options
author | phk <phk@FreeBSD.org> | 2004-06-26 09:20:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-26 09:20:07 +0000 |
commit | 0567d4ef5fa68876b3d70414d79e61c5cad5db3e (patch) | |
tree | c93b5edd593fd013f81731c196b7d1369e3d5f78 /sys/dev/sx/sx.c | |
parent | 21a36330b410b4bc4b67ebb64182227996dfb557 (diff) | |
download | FreeBSD-src-0567d4ef5fa68876b3d70414d79e61c5cad5db3e.zip FreeBSD-src-0567d4ef5fa68876b3d70414d79e61c5cad5db3e.tar.gz |
Pick the hotchar out of the tty structure instead of caching private
copies.
No current line disciplines have a dynamically changing hotchar, and
expecting to receive anything sensible during a change in ldisc is
insane so no locking of the hotchar field is necessary.
Diffstat (limited to 'sys/dev/sx/sx.c')
-rw-r--r-- | sys/dev/sx/sx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sx/sx.c b/sys/dev/sx/sx.c index 8a523fa..e7f5d82 100644 --- a/sys/dev/sx/sx.c +++ b/sys/dev/sx/sx.c @@ -477,7 +477,7 @@ open_top: } error = ttyld_open(tp, dev); - pp->sp_hotchar = ttyldoptim(tp); + ttyldoptim(tp); if (tp->t_state & TS_ISOPEN && DEV_IS_CALLOUT(mynor)) pp->sp_active_out = TRUE; @@ -812,7 +812,7 @@ sxioctl( } error = ttyioctl(dev, cmd, data, flag, p); - pp->sp_hotchar = ttyldoptim(tp); + ttyldoptim(tp); if (error != ENOTTY) goto out; |