diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-09-22 22:50:42 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-22 22:50:42 -0700 |
| commit | 7f904771736fc6a6465a80541a0cb607d69772d3 (patch) | |
| tree | c46dbc6ab39be234e8bde0b90f247192c09c0975 /fs/proc/array.c | |
| parent | 59dffd62665f1f323456d7f9d79110206ecf3001 (diff) | |
[PATCH] prepare for 32-bit dev_t: tty usage
tty->device had been used only in a couple of places and can be
calculated by tty->index and tty->driver. Field removed, its users switched
to static inline dev_t tty_devnum(tty).
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index bf39eb5013b0..f38e5d249fab 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -306,7 +306,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) mm = mmgrab(mm); if (task->tty) { tty_pgrp = task->tty->pgrp; - tty_nr = task->tty->device; + tty_nr = tty_devnum(task->tty); } task_unlock(task); if (mm) { |
