diff options
| author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2007-09-19 03:59:33 +0000 |
|---|---|---|
| committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2007-09-19 03:59:33 +0000 |
| commit | e1433e6b8afc455a44bc1f45cbec39de36c7c5f7 (patch) | |
| tree | 25fa17f1b4b7debd6e0e34394db72f1a4812cd1b /sys/dev | |
| parent | c5771451959c82b28d47be9cdf775026d4ae0616 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 89d60ef3a4a7..9fc4c3cc1e0f 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -1073,8 +1073,7 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) scp = sc_get_stat(SC_DEV(sc, i)); if (scp == scp->sc->cur_scp) return 0; - while ((error=tsleep(&scp->smode, PZERO|PCATCH, - "waitvt", 0)) == ERESTART) ; + error = tsleep(&scp->smode, PZERO | PCATCH, "waitvt", 0); return error; case VT_GETACTIVE: /* get active vty # */ |
