Changeset 84239b1 in mainline for uspace/lib/ext4/src


Ignore:
Timestamp:
2018-03-11T19:39:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

Location:
uspace/lib/ext4/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/balloc.c

    r850fd32 r84239b1  
    352352        uint32_t free_blocks;
    353353        uint32_t goal;
     354        uint32_t block_size;
    354355
    355356        /* Find GOAL */
     
    585586
    586587success:
    587         /* Empty command - because of syntax */
    588         ;
    589 
    590         uint32_t block_size = ext4_superblock_get_block_size(sb);
     588        block_size = ext4_superblock_get_block_size(sb);
    591589
    592590        /* Update superblock free blocks count */
  • uspace/lib/ext4/src/extent.c

    r850fd32 r84239b1  
    476476        uint16_t pos = 0;
    477477        errno_t rc;
     478        errno_t rc2;
    478479        while (ext4_extent_header_get_depth(eh) != 0) {
    479480                /* Search index in index node by iblock */
     
    513514
    514515cleanup:
    515         ;
    516 
    517         errno_t rc2 = EOK;
     516        rc2 = EOK;
    518517
    519518        /*
     
    623622        /* Find the first extent to modify */
    624623        ext4_extent_path_t *path;
     624        errno_t rc2;
    625625        errno_t rc = ext4_extent_find_extent(inode_ref, iblock_from, &path);
    626626        if (rc != EOK)
     
    734734
    735735cleanup:
    736         ;
    737 
    738         errno_t rc2 = EOK;
     736        rc2 = EOK;
    739737
    740738        /*
     
    982980        /* Load the nearest leaf (with extent) */
    983981        ext4_extent_path_t *path;
     982        errno_t rc2;
    984983        errno_t rc = ext4_extent_find_extent(inode_ref, new_block_idx, &path);
    985984        if (rc != EOK)
     
    10861085
    10871086finish:
    1088         ;
    1089 
    1090         errno_t rc2 = EOK;
     1087        rc2 = EOK;
    10911088
    10921089        /* Set return values */
  • uspace/lib/ext4/src/ops.c

    r850fd32 r84239b1  
    219219        ext4_node_t *eparent = EXT4_NODE(pfn);
    220220        ext4_filesystem_t *fs = eparent->instance->filesystem;
     221        errno_t rc2;
    221222
    222223        if (!ext4_inode_is_type(fs->superblock, eparent->inode_ref->inode,
     
    244245
    245246exit:
    246         ;
    247 
    248247        /* Destroy search result structure */
    249         errno_t const rc2 = ext4_directory_destroy_result(&result);
     248        rc2 = ext4_directory_destroy_result(&result);
    250249        return rc == EOK ? rc2 : rc;
    251250}
     
    12791278{
    12801279        fs_node_t *fn;
     1280        errno_t rc2;
    12811281        errno_t rc = ext4_node_get(&fn, service_id, index);
    12821282        if (rc != EOK)
     
    13951395
    13961396exit:
    1397         ;
    1398 
    1399         errno_t const rc2 = ext4_node_put(fn);
     1397        rc2 = ext4_node_put(fn);
    14001398        return rc == EOK ? rc2 : rc;
    14011399}
Note: See TracChangeset for help on using the changeset viewer.