summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-02 21:29:51 +0100
committerGravatar Nikias Bassen2013-12-02 21:29:51 +0100
commit34829cffdc3ee0902dbbef1d99147b11161bbe4f (patch)
treeed8d9c2bbcc22b55df468b2da07d9a25c9fd4d05
parent24462e8192a365deb826dc542c200caa7c4a67f5 (diff)
downloadidevicerestore-34829cffdc3ee0902dbbef1d99147b11161bbe4f.tar.gz
idevicerestore-34829cffdc3ee0902dbbef1d99147b11161bbe4f.tar.bz2
fls: remove redundant variable assignments
-rw-r--r--src/fls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fls.c b/src/fls.c
index 5d7fbda..f422447 100644
--- a/src/fls.c
+++ b/src/fls.c
@@ -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) {