make the book happy

This commit is contained in:
Robert Morris 2012-08-28 14:41:08 -04:00
parent 792d83cad1
commit 2ae8392a5c

4
ide.c
View file

@ -134,11 +134,11 @@ iderw(struct buf *b)
if(b->dev != 0 && !havedisk1) if(b->dev != 0 && !havedisk1)
panic("iderw: ide disk 1 not present"); panic("iderw: ide disk 1 not present");
acquire(&idelock); //DOC: acquire-lock acquire(&idelock); //DOC:acquire-lock
// Append b to idequeue. // Append b to idequeue.
b->qnext = 0; b->qnext = 0;
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC: insert-queue for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
; ;
*pp = b; *pp = b;