diff options
author | Marvin Borner | 2021-05-20 16:16:01 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-20 16:16:01 +0200 |
commit | 9da2af6699ca6e954bc3cb523dd74a9195a503d5 (patch) | |
tree | d2630dcc08bf05a211989a51f1b0c68f0b535a56 /kernel/features/fs.c | |
parent | 3f928975d3f2925c6227e7389adf03c22df2d898 (diff) |
Coding style fixes
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r-- | kernel/features/fs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/features/fs.c b/kernel/features/fs.c index 923ab7c..dc8c071 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -318,8 +318,7 @@ static res ext2_read_inode(struct ext2_inode *in, void *buf, u32 offset, u32 cou u32 remaining = MIN(count, in->size - offset); u32 copied = 0; - u32 indirect = 0; - u32 blocknum = 0; + u32 indirect, blocknum; // TODO: Support triply indirect pointers for (u32 i = first_block; i <= last_block; i++) { @@ -412,8 +411,8 @@ static struct ext2_inode *ext2_find_inode_by_path(const char *path, struct ext2_ path_cp++; u32 current_inode = EXT2_ROOT; - u32 i = 0; while (1) { + u32 i; for (i = 0; path_cp[i] != '/' && path_cp[i] != '\0'; i++) ; |