aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/fs/ntfs/ntfs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/fs/ntfs/ntfs.c b/core/fs/ntfs/ntfs.c
index 6a983de6..23ef1e08 100644
--- a/core/fs/ntfs/ntfs.c
+++ b/core/fs/ntfs/ntfs.c
@@ -352,7 +352,6 @@ static int parse_data_run(const void *stream, uint32_t *offset,
uint8_t *byte;
int byte_shift = 8;
int mask;
- uint8_t val;
int64_t res;
(void)attr_len;
@@ -381,11 +380,8 @@ static int parse_data_run(const void *stream, uint32_t *offset,
count = v;
res = 0LL;
- while (count--) {
- val = *byte--;
- mask = val >> (byte_shift - 1);
- res = (res << byte_shift) | ((val + mask) ^ mask);
- }
+ while (count--)
+ res = (res << bytes_shift) | *byte--;
chunk->len = res; /* get length data */