diff options
author | Nikias Bassen | 2013-12-02 21:29:51 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-02 21:29:51 +0100 |
commit | 34829cffdc3ee0902dbbef1d99147b11161bbe4f (patch) | |
tree | ed8d9c2bbcc22b55df468b2da07d9a25c9fd4d05 /src | |
parent | 24462e8192a365deb826dc542c200caa7c4a67f5 (diff) | |
download | idevicerestore-34829cffdc3ee0902dbbef1d99147b11161bbe4f.tar.gz idevicerestore-34829cffdc3ee0902dbbef1d99147b11161bbe4f.tar.bz2 |
fls: remove redundant variable assignments
Diffstat (limited to 'src')
-rw-r--r-- | src/fls.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -54,7 +54,7 @@ static void fls_parse_elements(fls_file* fls) fls_0c_element* xe = (fls_0c_element*)malloc(sizeof(fls_0c_element)); memset(xe, '\0', sizeof(fls_0c_element)); memcpy((void*)xe, p, hdrsize); - xe->data = (xe->size > hdrsize) ? xe->data = p + hdrsize : NULL; + xe->data = (xe->size > hdrsize) ? p + hdrsize : NULL; ne = (fls_element*)xe; fls->c_element = xe; } @@ -65,7 +65,7 @@ static void fls_parse_elements(fls_file* fls) fls_10_element* xe = (fls_10_element*)malloc(sizeof(fls_10_element)); memset(xe, '\0', sizeof(fls_10_element)); memcpy((void*)xe, p, hdrsize); - xe->data = (xe->size > hdrsize) ? xe->data = p + hdrsize : NULL; + xe->data = (xe->size > hdrsize) ? p + hdrsize : NULL; ne = (fls_element*)xe; } break; @@ -75,7 +75,7 @@ static void fls_parse_elements(fls_file* fls) fls_14_element* xe = (fls_14_element*)malloc(sizeof(fls_14_element)); memset(xe, '\0', sizeof(fls_14_element)); memcpy((void*)xe, p, hdrsize); - xe->data = (xe->size > hdrsize) ? xe->data = p + hdrsize : NULL; + xe->data = (xe->size > hdrsize) ? p + hdrsize : NULL; ne = (fls_element*)xe; } break; @@ -85,7 +85,7 @@ static void fls_parse_elements(fls_file* fls) memset(ne, '\0', sizeof(fls_element)); ne->type = cur->type; ne->size = cur->size; - ne->data = (ne->size > hdrsize) ? ne->data = p + hdrsize : NULL; + ne->data = (ne->size > hdrsize) ? p + hdrsize : NULL; break; } if ((fls->num_elements + 1) > fls->max_elements) { |