summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2015-11-16 20:39:15 +0100
committergkostka <kostka.grzegorz@gmail.com>2015-11-16 21:27:28 +0100
commit142e8c1b517189dbc9466e6c6c445aa40f208a1f (patch)
tree8fc506f061f5151b901e046186a0bb8afd09e031
parent807f49f7a47c5051126230a6b452e04189513610 (diff)
Code format
-rw-r--r--lwext4/ext4.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lwext4/ext4.c b/lwext4/ext4.c
index 789c12d..2c16b50 100644
--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -197,8 +197,7 @@ static int ext4_link(struct ext4_mountpoint *mp, struct ext4_inode_ref *parent,
* Also newly allocated inode should have 0 link count.
*/
if (ext4_inode_is_type(&mp->fs.sb, child->inode,
- EXT4_INODE_MODE_DIRECTORY) &&
- !rename) {
+ EXT4_INODE_MODE_DIRECTORY) && !rename) {
#if CONFIG_DIR_INDEX_ENABLE
/* Initialize directory index if supported */
@@ -644,10 +643,8 @@ static int ext4_generic_open2(ext4_file *f, const char *path, int flags,
/*O_CREAT allows create new entry*/
struct ext4_inode_ref child_ref;
- r = ext4_fs_alloc_inode(
- &mp->fs, &child_ref,
- is_goal ? filetype
- : EXT4_DIRENTRY_DIR);
+ r = ext4_fs_alloc_inode(&mp->fs, &child_ref,
+ is_goal ? filetype : EXT4_DIRENTRY_DIR);
if (r != EOK)
break;