shithub: lwext4

Download patch

ref: 142e8c1b517189dbc9466e6c6c445aa40f208a1f
parent: 807f49f7a47c5051126230a6b452e04189513610
author: gkostka <[email protected]>
date: Mon Nov 16 15:39:15 EST 2015

Code format

--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -197,8 +197,7 @@
 	 * 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 @@
 
 			/*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;