shithub: lwext4

Download patch

ref: 75f7046dda4d04efbe74d0abeda61eff25686545
parent: 1930bbbd7d6629c6dfb25da8379a55854a866733
author: gkostka <[email protected]>
date: Sun Oct 18 10:16:57 EDT 2015

Remove define used only in one expresion

--- a/lwext4/ext4_extent_full.c
+++ b/lwext4/ext4_extent_full.c
@@ -464,8 +464,6 @@
 	path->extent = l - 1;
 }
 
-#define EXT4_EXT_PATH_INC_DEPTH 1
-
 static int ext4_find_extent(struct ext4_inode_ref *inode_ref, ext4_lblk_t block,
 			    struct ext4_extent_path **orig_path, uint32_t flags)
 {
@@ -488,7 +486,7 @@
 		}
 	}
 	if (!path) {
-		int32_t path_depth = depth + EXT4_EXT_PATH_INC_DEPTH;
+		int32_t path_depth = depth + 1;
 		/* account possible depth increase */
 		path = calloc(1, sizeof(struct ext4_extent_path) *
 				     (path_depth + 1));