Orion
Barry Moving signal handlers into separate namespace 7ae31b0 (3 years, 1 month ago)
diff --git a/mem/pagefault.c b/mem/pagefault.c
index 14219b7..4482efe 100644
--- a/mem/pagefault.c
+++ b/mem/pagefault.c
@@ -33,7 +33,6 @@ copy_on_write(VMRegion *region, uintptr_t addr)
uint8_t private = region->flags & MAP_PRIVATE;
uint8_t sharedanon = (region->flags & MAP_SHARED) &&
(region->flags & MAP_ANONYMOUS);
- uint8_t created = 0;
if (!front && (private || sharedanon)) {
/*
* A private mapping will always write to the front. A shared
@@ -46,7 +45,6 @@ copy_on_write(VMRegion *region, uintptr_t addr)
front->inode = inode_get(kmalloc(sizeof(Inode)));
front->ops = &tmpfsFileOps;
region->front = file_get(front);
- created++;
}
/* Find original page frame */