Remove redundant macro cproc_addr

This commit is contained in:
Erik van der Kouwe 2010-06-08 13:38:44 +00:00
parent 78186ee5f5
commit 7bd7946346
2 changed files with 1 additions and 2 deletions

View File

@ -242,7 +242,6 @@ struct proc {
#define BEG_USER_ADDR (&proc[NR_TASKS])
#define END_PROC_ADDR (&proc[NR_TASKS + NR_PROCS])
#define cproc_addr(n) (&(proc + NR_TASKS)[(n)])
#define proc_addr(n) (&(proc[NR_TASKS + (n)]))
#define proc_nr(p) ((p)->p_nr)

View File

@ -475,7 +475,7 @@ int proc_nr;
if (proc_nr == ANY) return "ANY";
if (proc_nr == NONE) return "NONE"; /* bogus */
if (proc_nr < -NR_TASKS || proc_nr >= NR_PROCS) return "BOGUS";
p = cproc_addr(proc_nr);
p = proc_addr(proc_nr);
if (isemptyp(p)) return "EMPTY"; /* bogus */
return p->p_name;
}