Changeset 5cd6c84 in mainline


Ignore:
Timestamp:
2013-07-23T17:46:40Z (11 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e976d9b, a39aac7
Parents:
675a2bb
Message:

Replace internal variable names into FATFS free count operation code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r675a2bb r5cd6c84  
    867867{
    868868        fat_bs_t *bs;
    869         fat_cluster_t e0 = 0;
     869        fat_cluster_t e0;
    870870        uint64_t block_count;
    871871        int rc;
    872         uint32_t fat_no, fat_tot;
     872        uint32_t cluster_no, clusters;
    873873
    874874        block_count = 0;
    875875        bs = block_bb_get(service_id);
    876876       
    877         fat_tot = (SPC(bs)) ? TS(bs) / SPC(bs) : 0;
     877        clusters = (SPC(bs)) ? TS(bs) / SPC(bs) : 0;
    878878       
    879         for (fat_no = 0; fat_no < fat_tot; fat_no++) {
    880                 rc = fat_get_cluster(bs, service_id, FAT1, fat_no, &e0);
     879        for (cluster_no = 0; cluster_no < clusters; cluster_no++) {
     880                rc = fat_get_cluster(bs, service_id, FAT1, cluster_no, &e0);
    881881                if (rc != EOK)
    882882                        return EIO;
Note: See TracChangeset for help on using the changeset viewer.