Changeset 18b6a88 in mainline for uspace/srv/fs/exfat/exfat_fat.c


Ignore:
Timestamp:
2018-04-15T09:35:04Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_fat.c

    r8ebe212 r18b6a88  
    142142                         */
    143143                        return block_get(block, nodep->idx->service_id, DATA_FS(bs) +
    144                         (nodep->lastc_cached_value-EXFAT_CLST_FIRST)*SPC(bs) +
     144                            (nodep->lastc_cached_value - EXFAT_CLST_FIRST) * SPC(bs) +
    145145                            (bn % SPC(bs)), flags);
    146146                }
     
    201201        if (!fragmented) {
    202202                rc = block_get(block, service_id, DATA_FS(bs) +
    203                     (fcl - EXFAT_CLST_FIRST)*SPC(bs) + bn, flags);
     203                    (fcl - EXFAT_CLST_FIRST) * SPC(bs) + bn, flags);
    204204        } else {
    205205                max_clusters = bn / SPC(bs);
     
    514514        block_t *b;
    515515        errno_t rc;
    516         blocks = ROUND_UP(nodep->size, BPS(bs))/BPS(bs);
     516        blocks = ROUND_UP(nodep->size, BPS(bs)) / BPS(bs);
    517517        count = BPS(bs);
    518518
Note: See TracChangeset for help on using the changeset viewer.