diff options
author | 2019-07-19 00:17:15 +0000 | |
---|---|---|
committer | 2019-07-19 00:17:15 +0000 | |
commit | c8b8fc796bad65f2c985547538dca0e5028aefa7 (patch) | |
tree | 255f5440c64425ad879c99c1e47dcc0d2d0e9961 /sys/dev/fdt/imxuart.c | |
parent | ddb(4): clean up callout command (diff) | |
download | wireguard-openbsd-c8b8fc796bad65f2c985547538dca0e5028aefa7.tar.xz wireguard-openbsd-c8b8fc796bad65f2c985547538dca0e5028aefa7.zip |
ttysleep(): drop unused timeout parameter
All callers sleep indefinitely.
With help from visa@.
ok visa@, ratchov@, kn@
Diffstat (limited to 'sys/dev/fdt/imxuart.c')
-rw-r--r-- | sys/dev/fdt/imxuart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/imxuart.c b/sys/dev/fdt/imxuart.c index 1418c90af09..e2604bf5025 100644 --- a/sys/dev/fdt/imxuart.c +++ b/sys/dev/fdt/imxuart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxuart.c,v 1.7 2019/06/15 14:15:12 kettenis Exp $ */ +/* $OpenBSD: imxuart.c,v 1.8 2019/07/19 00:17:15 cheloha Exp $ */ /* * Copyright (c) 2005 Dale Rahn <drahn@motorola.com> * @@ -301,7 +301,7 @@ imxuart_param(struct tty *tp, struct termios *t) while (ISSET(tp->t_state, TS_BUSY)) { ++sc->sc_halt; error = ttysleep(tp, &tp->t_outq, - TTOPRI | PCATCH, "imxuartprm", 0); + TTOPRI | PCATCH, "imxuartprm"); --sc->sc_halt; if (error) { imxuart_start(tp); @@ -598,7 +598,7 @@ imxuartopen(dev_t dev, int flag, int mode, struct proc *p) !ISSET(tp->t_state, TS_CARR_ON))) { SET(tp->t_state, TS_WOPEN); error = ttysleep(tp, &tp->t_rawq, - TTIPRI | PCATCH, ttopen, 0); + TTIPRI | PCATCH, ttopen); /* * If TS_WOPEN has been reset, that means the * cua device has been closed. We don't want |