diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-04-23 04:18:59 -0700 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2003-04-23 04:18:59 -0700 |
| commit | 345127472f366d63f50fdf29b9dd84e70a084bd7 (patch) | |
| tree | e1f47d76d696923a8c1d8baa05e75f97748fda56 /drivers/s390/net/ctctty.c | |
| parent | 07462df3687e6a58846911460f4f4833fbe3d587 (diff) | |
[PATCH] tty cleanups (6/12)
tty->tty_index added; we initialize it with minor(tty->device) -
tty->driver->minor_start. Majority of remaining tty->device uses had
that form and are switched to use of tty->index.
Diffstat (limited to 'drivers/s390/net/ctctty.c')
| -rw-r--r-- | drivers/s390/net/ctctty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/ctctty.c b/drivers/s390/net/ctctty.c index 1e85b8df866e..ba75c7c935c6 100644 --- a/drivers/s390/net/ctctty.c +++ b/drivers/s390/net/ctctty.c @@ -973,7 +973,7 @@ ctc_tty_open(struct tty_struct *tty, struct file *filp) int retval, line; - line = minor(tty->device) - tty->driver->minor_start; + line = tty->index; if (line < 0 || line > CTC_TTY_MAX_DEVICES) return -ENODEV; info = &driver->info[line]; |
