Skip to contentSkip to conversation

ext4_ext_split(): remove dead code

PATCH New Adrian Bunk 1 participant 1 message Nov 6, 2006 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4_ext_split(): remove dead code

The Coverity checker noted that this was dead code, since in all places above in this function, "err" is immediately checked.

fs/ext4/extents.c renamed from fs/ext4/extents.c.old +0 -3
@@ -800,9 +800,6 @@ static int ext4_ext_split(handle_t *hand
 	}
 
 	/* insert new index */
-	if (err)
-		goto cleanup;
-
 	err = ext4_ext_insert_index(handle, inode, path + at,
 				    le32_to_cpu(border), newblock);