Changeset 40a2af3 in mainline


Ignore:
Timestamp:
2011-09-09T18:41:18Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
05fb96b, f456ab2
Parents:
3781092
Message:

remove a lot of useless asserts

Location:
uspace/srv/fs/mfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_balloc.c

    r3781092 r40a2af3  
    122122        block_t *b;
    123123
    124         assert(inst != NULL);
    125124        sbi = inst->sbi;
    126         assert(sbi != NULL);
    127125
    128126        if (bid == BMAP_ZONE) {
     
    192190        int r, freebit;
    193191
    194         assert(inst != NULL);
    195192        sbi = inst->sbi;
    196         assert(sbi != NULL);
    197193
    198194        if (bid == BMAP_ZONE) {
  • uspace/srv/fs/mfs/mfs_inode.c

    r3781092 r40a2af3  
    8585
    8686        sbi = instance->sbi;
    87         assert(sbi);
    8887
    8988        /*inode 0 does not exist*/
     
    150149
    151150        sbi = instance->sbi;
    152         assert(sbi);
    153151
    154152        /*inode 0 does not exist*/
     
    204202        int rc = EOK;
    205203
    206         assert(mnode);
    207         assert(mnode->ino_i);
    208 
    209204        if (!mnode->ino_i->dirty)
    210205                goto out;
    211206
    212207        struct mfs_instance *inst = mnode->instance;
    213         assert(inst);
    214208        struct mfs_sb_info *sbi = inst->sbi;
    215         assert(sbi);
    216209
    217210        if (sbi->fs_version == MFS_VERSION_V1)
  • uspace/srv/fs/mfs/mfs_ops.c

    r3781092 r40a2af3  
    468468static aoff64_t mfs_size_get(fs_node_t *node)
    469469{
    470         assert(node);
    471 
    472470        const struct mfs_node *mnode = node->data;
    473         assert(mnode);
    474         assert(mnode->ino_i);
    475 
    476471        return mnode->ino_i->i_size;
    477472}
     
    535530{
    536531        struct mfs_node *mnode = fsnode->data;
    537 
    538         assert(mnode->ino_i);
    539532        return mnode->ino_i->index;
    540533}
Note: See TracChangeset for help on using the changeset viewer.