Skip to content
Snippets Groups Projects
Commit af03ab14 authored by Frans Kaashoek's avatar Frans Kaashoek
Browse files

a few nits

passes all tests on two-processor smp
parent b364c4b8
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,6 @@ bread(uint dev, uint sector) ...@@ -109,7 +109,6 @@ bread(uint dev, uint sector)
void void
bwrite(struct buf *b) bwrite(struct buf *b)
{ {
cprintf("bwrite sector %d\n", b->sector);
if((b->flags & B_BUSY) == 0) if((b->flags & B_BUSY) == 0)
panic("bwrite"); panic("bwrite");
b->flags |= B_DIRTY; b->flags |= B_DIRTY;
......
...@@ -102,7 +102,7 @@ exec(char *path, char **argv) ...@@ -102,7 +102,7 @@ exec(char *path, char **argv)
return 0; return 0;
bad: bad:
freevm(pgdir); if (pgdir) freevm(pgdir);
iunlockput(ip); iunlockput(ip);
return -1; return -1;
} }
...@@ -111,8 +111,6 @@ kalloc(int n) ...@@ -111,8 +111,6 @@ kalloc(int n)
} }
} }
release(&kmem.lock); release(&kmem.lock);
cprintf("kalloc: out of memory\n");
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment