Changeset 1b20da0 in mainline for uspace/srv/fs/fat/fat_idx.c


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

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

    rdf6ded8 r1b20da0  
    2929/** @addtogroup fs
    3030 * @{
    31  */ 
     31 */
    3232
    3333/**
     
    9292
    9393        list_foreach(unused_list, link, unused_t, u) {
    94                 if (u->service_id == service_id) 
     94                if (u->service_id == service_id)
    9595                        return u;
    9696        }
     
    108108 * The index structures are hashed by the service_id, parent node's first
    109109 * cluster and index within the parent directory.
    110  */ 
     110 */
    111111static hash_table_t up_hash;
    112112
     
    211211        u = unused_find(service_id, true);
    212212        if (!u)
    213                 return false;   
     213                return false;
    214214
    215215        if (list_empty(&u->freed_list)) {
    216                 if (u->remaining) { 
     216                if (u->remaining) {
    217217                        /*
    218218                         * There are no freed indices, allocate one directly
     
    333333
    334334        fidx = (fat_idx_t *) malloc(sizeof(fat_idx_t));
    335         if (!fidx) 
     335        if (!fidx)
    336336                return ENOMEM;
    337337        if (!fat_index_alloc(service_id, &fidx->index)) {
     
    469469errno_t fat_idx_init(void)
    470470{
    471         if (!hash_table_create(&up_hash, 0, 0, &uph_ops)) 
     471        if (!hash_table_create(&up_hash, 0, 0, &uph_ops))
    472472                return ENOMEM;
    473473        if (!hash_table_create(&ui_hash, 0, 0, &uih_ops)) {
     
    535535         * Remove this instance's index structure from up_hash and ui_hash.
    536536         * Process up_hash first and ui_hash second because the index structure
    537          * is actually removed in idx_remove_callback(). 
     537         * is actually removed in idx_remove_callback().
    538538         */
    539539        fibril_mutex_lock(&used_lock);
     
    556556                free(f);
    557557        }
    558         free(u); 
     558        free(u);
    559559}
    560560
    561561/**
    562562 * @}
    563  */ 
     563 */
Note: See TracChangeset for help on using the changeset viewer.