ext4_extent: some comments cleanup in ext4_ext_correct_indexes.
authorngkaho1234 <ngkaho1234@gmail.com>
Fri, 15 Jan 2016 09:58:54 +0000 (09:58 +0000)
committerngkaho1234 <ngkaho1234@gmail.com>
Fri, 15 Jan 2016 11:54:42 +0000 (11:54 +0000)
lwext4/ext4_extent.c

index 3705e8a5631c0b1128513acbee3bba198dbf098d..2c0ad527d1978967737c2cf949c5b4a9a98acd54 100644 (file)
@@ -844,9 +844,8 @@ static int ext4_ext_correct_indexes(struct ext4_inode_ref *inode_ref,
        eh = path[depth].header;
        ex = path[depth].extent;
 
-       if (ex == NULL || eh == NULL) {
+       if (ex == NULL || eh == NULL)
                return EIO;
-       }
 
        if (depth == 0) {
                /* there is no tree at all */
@@ -858,9 +857,6 @@ static int ext4_ext_correct_indexes(struct ext4_inode_ref *inode_ref,
                return EOK;
        }
 
-       /*
-        * TODO: we need correction if border is smaller than current one
-        */
        k = depth - 1;
        border = path[depth].extent->first_block;
        path[k].index->first_block = border;