aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/paging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/memory/paging.c')
-rw-r--r--src/kernel/memory/paging.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/memory/paging.c b/src/kernel/memory/paging.c
index 432b51c..5ed3fdd 100644
--- a/src/kernel/memory/paging.c
+++ b/src/kernel/memory/paging.c
@@ -190,8 +190,7 @@ u32 paging_get_used_pages()
u32 n = 0;
for (u32 i = 0; i < PAGE_COUNT; i++) {
for (u32 j = 0; j < PAGE_COUNT; j++) {
- u8 flags = page_tables[i][j] & PT_USED;
- if (flags == 1)
+ if (page_tables[i][j] & PT_USED)
n++;
}
}