From: Adrian Bunk Date: Thu, 7 Dec 2006 04:37:25 +0000 (-0800) Subject: [PATCH] ext4_ext_split(): remove dead code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6fb50ea79cb869667adaa71ed32cc15dd73986de;p=openwrt%2Fstaging%2Fblogic.git [PATCH] 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. Signed-off-by: Adrian Bunk Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 2608dce18f3e..1442ccbaea79 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -800,9 +800,6 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, } /* insert new index */ - if (err) - goto cleanup; - err = ext4_ext_insert_index(handle, inode, path + at, le32_to_cpu(border), newblock);