Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_directory_index.c

    re5a1ace3 r38542dc  
    527527               
    528528                /* Don't forget to put old block (prevent memory leak) */
    529                 rc = block_put(p->block);
    530                 if (rc != EOK)
    531                         return rc;
     529                block_put(p->block);
    532530               
    533531                p->block = block;
     
    555553        /* Load direct block 0 (index root) */
    556554        uint32_t root_block_addr;
    557         int rc2;
    558555        int rc = ext4_filesystem_get_inode_data_block_index(inode_ref, 0,
    559556            &root_block_addr);
     
    623620               
    624621                /* Not found, leave untouched */
    625                 rc2 = block_put(leaf_block);
    626                 if (rc2 != EOK)
    627                         goto cleanup;
     622                block_put(leaf_block);
    628623               
    629624                if (rc != ENOENT)
     
    633628                rc = ext4_directory_dx_next_block(inode_ref, hinfo.hash,
    634629                    dx_block, &dx_blocks[0]);
    635                 if (rc != EOK)
     630                if (rc < 0)
    636631                        goto cleanup;
    637 
    638632        } while (rc == ENOENT);
    639633       
     
    646640       
    647641        while (tmp <= dx_block) {
    648                 rc2 = block_put(tmp->block);
    649                 if (rc == EOK && rc2 != EOK)
    650                         rc = rc2;
     642                block_put(tmp->block);
    651643                ++tmp;
    652644        }
Note: See TracChangeset for help on using the changeset viewer.