Remove redundant macro cproc_addr
This commit is contained in:
parent
78186ee5f5
commit
7bd7946346
@ -242,7 +242,6 @@ struct proc {
|
|||||||
#define BEG_USER_ADDR (&proc[NR_TASKS])
|
#define BEG_USER_ADDR (&proc[NR_TASKS])
|
||||||
#define END_PROC_ADDR (&proc[NR_TASKS + NR_PROCS])
|
#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_addr(n) (&(proc[NR_TASKS + (n)]))
|
||||||
#define proc_nr(p) ((p)->p_nr)
|
#define proc_nr(p) ((p)->p_nr)
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@ int proc_nr;
|
|||||||
if (proc_nr == ANY) return "ANY";
|
if (proc_nr == ANY) return "ANY";
|
||||||
if (proc_nr == NONE) return "NONE"; /* bogus */
|
if (proc_nr == NONE) return "NONE"; /* bogus */
|
||||||
if (proc_nr < -NR_TASKS || proc_nr >= NR_PROCS) return "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 */
|
if (isemptyp(p)) return "EMPTY"; /* bogus */
|
||||||
return p->p_name;
|
return p->p_name;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user