Changeset 6d1d143 in mainline


Ignore:
Timestamp:
2018-03-19T22:09:47Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
565aaff
Parents:
013e5d32
git-author:
Jakub Jermar <jakub@…> (2018-03-19 22:03:16)
git-committer:
Jakub Jermar <jakub@…> (2018-03-19 22:09:47)
Message:

fat12: do not convert from little-endian twice

File:
1 edited

Legend:

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

    r013e5d32 r6d1d143  
    339339                byte2 = ((uint8_t *) b->data)[(offset % BPS(bs)) + 1];
    340340
    341         *value = uint16_t_le2host(byte1 | (byte2 << 8));
     341        *value = (byte1 | (byte2 << 8));
    342342        if (IS_ODD(clst))
    343343                *value = (*value) >> 4;
Note: See TracChangeset for help on using the changeset viewer.