Fix a warning. (unused p if not INVARIANTS)

This commit is contained in:
Peter Wemm 2001-10-06 02:13:58 +00:00
parent c4d33a56b1
commit 5e0f6bc415
2 changed files with 2 additions and 4 deletions

View File

@ -127,7 +127,6 @@ i386_extend_pcb(struct thread *td)
0, /* default 32 size */
0 /* granularity */
};
struct proc *p = td->td_proc;
if (td->td_proc->p_flag & P_KSES)
return (EINVAL); /* XXXKSE */
@ -159,7 +158,7 @@ i386_extend_pcb(struct thread *td)
ssd.ssd_limit -= ((unsigned)&ext->ext_tss - (unsigned)ext);
ssdtosd(&ssd, &ext->ext_tssd);
KASSERT(p == curthread->td_proc, ("giving a TSS to non-curproc"));
KASSERT(td->td_proc == curthread->td_proc, ("giving TSS to !curproc"));
KASSERT(td->td_pcb->pcb_ext == 0, ("already have a TSS!"));
mtx_lock_spin(&sched_lock);
td->td_pcb->pcb_ext = ext;

View File

@ -127,7 +127,6 @@ i386_extend_pcb(struct thread *td)
0, /* default 32 size */
0 /* granularity */
};
struct proc *p = td->td_proc;
if (td->td_proc->p_flag & P_KSES)
return (EINVAL); /* XXXKSE */
@ -159,7 +158,7 @@ i386_extend_pcb(struct thread *td)
ssd.ssd_limit -= ((unsigned)&ext->ext_tss - (unsigned)ext);
ssdtosd(&ssd, &ext->ext_tssd);
KASSERT(p == curthread->td_proc, ("giving a TSS to non-curproc"));
KASSERT(td->td_proc == curthread->td_proc, ("giving TSS to !curproc"));
KASSERT(td->td_pcb->pcb_ext == 0, ("already have a TSS!"));
mtx_lock_spin(&sched_lock);
td->td_pcb->pcb_ext = ext;