FIXED: wastefulness in slp.c

utzoo!decvax!ucbvax!dist2 utzoo!decvax!ucbvax!dist2
Sun Sep 27 02:16:13 AEST 1981


	The function dequeue() is unused and should be deleted.

	diff kernel/sys/sys/slp.c.old kernel/sys/sys/slp.c:
	145,168d144
	<  * Remove the process pointed to by p
	<  * from the queue pointed to by qp.
	<  */
	< 
	< dequeue(p, qp)
	< register struct proc *p;
	< register struct proc **qp;
	< {
	< 	register struct proc *q;
	< 
	< 	if(*qp == p) {
	< 		*qp = p->p_link;
	< 		return;
	< 	}
	< 	for(q = *qp; q != NULL; q = q->p_link) {
	< 		if(q->p_link == p) {
	< 			q->p_link = p->p_link;
	< 			return;
	< 		}
	< 	}
	< 	panic("dequeue");
	< }
	< 
	< /*

This change should be applied to all tapes made before 9/28/81.

			Carl



More information about the Comp.bugs.2bsd mailing list