int ext4_mount(const char *dev_name, const char *mount_point)\r
{\r
ext4_assert(mount_point && dev_name);\r
- int r = EOK;\r
+ int r;\r
int i;\r
\r
uint32_t bsize;\r
break;\r
}\r
\r
- if (!strcmp(_mp[i].name, mount_point)) {\r
+ if (!strcmp(_mp[i].name, mount_point))\r
return EOK;\r
- }\r
}\r
\r
if (!mp)\r
int ext4_umount(const char *mount_point)\r
{\r
int i;\r
- int r = EOK;\r
+ int r;\r
struct ext4_mountpoint *mp = 0;\r
\r
for (i = 0; i < CONFIG_EXT4_MOUNTPOINTS_COUNT; ++i) {\r
bool file_expect, uint32_t *parent_inode,\r
uint32_t *name_off)\r
{\r
- struct ext4_mountpoint *mp = ext4_get_mount(path);\r
- struct ext4_directory_search_result result;\r
- struct ext4_inode_ref ref;\r
bool is_goal = false;\r
uint8_t inode_type = EXT4_DIRECTORY_FILETYPE_DIR;\r
- int r = ENOENT;\r
uint32_t next_inode;\r
\r
+ int r;\r
+ struct ext4_mountpoint *mp = ext4_get_mount(path);\r
+ struct ext4_directory_search_result result;\r
+ struct ext4_inode_ref ref;\r
+\r
f->mp = 0;\r
\r
if (!mp)\r
ext4_file f;\r
uint32_t parent_inode;\r
uint32_t name_off;\r
+ bool is_goal;\r
int r;\r
int len;\r
- bool is_goal;\r
- struct ext4_mountpoint *mp = ext4_get_mount(path);\r
-\r
struct ext4_inode_ref child;\r
struct ext4_inode_ref parent;\r
+ struct ext4_mountpoint *mp = ext4_get_mount(path);\r
\r
if (!mp)\r
return ENOENT;\r
}\r
int ext4_fread(ext4_file *f, void *buf, uint32_t size, uint32_t *rcnt)\r
{\r
- int r = EOK;\r
uint32_t u;\r
uint32_t fblock;\r
uint32_t fblock_start;\r
uint32_t fblock_cnt;\r
- struct ext4_block b;\r
- uint8_t *u8_buf = buf;\r
- struct ext4_inode_ref ref;\r
uint32_t sblock;\r
uint32_t sblock_end;\r
uint32_t block_size;\r
+ uint8_t *u8_buf = buf;\r
+ int r;\r
+ struct ext4_block b;\r
+ struct ext4_inode_ref ref;\r
\r
ext4_assert(f && f->mp);\r
\r