Changeset cc8044e in mainline


Ignore:
Timestamp:
2013-09-13T14:05:30Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2663d8, eb40d86
Parents:
adec6a29
Message:

There is no need to check wether the inst pointer is NULL or not

Location:
uspace/srv/fs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    radec6a29 rcc8044e  
    876876        if (rc != EOK)
    877877                return rc;
    878         if (NULL == inst)
    879                 return ENOENT;
    880878
    881879        ext4_superblock_t *sb = inst->filesystem->superblock;
  • uspace/srv/fs/mfs/mfs_ops.c

    radec6a29 rcc8044e  
    11811181                return rc;
    11821182
    1183         if (NULL == inst)
    1184                 return ENOENT;
    1185 
    1186         mfs_count_free_zones(inst, &block_free);
     1183        rc = mfs_count_free_zones(inst, &block_free);
    11871184        *count = block_free;
    11881185
    1189         return EOK;
     1186        return rc;
    11901187}
    11911188
Note: See TracChangeset for help on using the changeset viewer.