Ignore:
File:
1 edited

Legend:

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

    r92d9406 r04aaed8f  
    112112                rc = block_put(di->b);
    113113                di->b = NULL;
    114                 if (rc != EOK)
    115                         return rc;
    116114        }
    117115        if (!di->b) {
     
    268266                if (idx == 2 || idx == 3)
    269267                        continue;
    270                 checksum = ((checksum << 15) | (checksum >> 1)) +
    271                     (uint16_t)bytes[idx];
     268                checksum = ((checksum << 15) | (checksum >> 1)) + (uint16_t)bytes[idx];
    272269        }
    273270        return checksum;
     
    313310        array[1].stream.valid_data_size = host2uint64_t_le(ds->valid_data_size);
    314311        array[1].stream.data_size = host2uint64_t_le(ds->data_size);
    315         array[0].file.checksum =
    316             host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array,
     312        array[0].file.checksum = host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array,
    317313            count * sizeof(exfat_dentry_t)));
    318314
     
    356352        uctablep = EXFAT_NODE(fn);
    357353
    358         uctable_chars = ALIGN_DOWN(uctablep->size,
    359             sizeof(uint16_t)) / sizeof(uint16_t);
     354        uctable_chars = ALIGN_DOWN(uctablep->size, sizeof(uint16_t)) / sizeof(uint16_t);
    360355        uctable = (uint16_t *) malloc(uctable_chars * sizeof(uint16_t));
    361356        rc = exfat_read_uctable(di->bs, uctablep, (uint8_t *)uctable);
     
    422417                        return rc;
    423418
    424                 if (i == df.file.count - 2) {
    425                         chars = ds.stream.name_size -
    426                             EXFAT_NAME_PART_LEN*(df.file.count - 2);
    427                 }
    428 
     419                if (i == df.file.count - 2)
     420                        chars = ds.stream.name_size - EXFAT_NAME_PART_LEN*(df.file.count - 2);
    429421                rc = exfat_directory_get(di, &de);
    430422                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.