summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-16 10:42:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-16 10:42:27 +0000
commita6df1fd48df8942f716e4f09781aa6826b541517 (patch)
treec6b7bb86449fc9e19fd340c221133a31161bffb6 /firmware
parentf9a46c1cda57be492eb4cf562222900a5d4cf260 (diff)
removed redundant size checks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2298 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/id3.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index e70c288566..4a803e7d2b 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -234,8 +234,6 @@ static void setid3v2title(int fd, struct mp3entry *entry)
!strncmp(header, "TP1", strlen("TP1"))) {
readsize++;
headerlen--;
- if(headerlen > (size - readsize))
- headerlen = (size - readsize);
artist = buffer + readsize;
artistn = headerlen;
readsize += headerlen;
@@ -244,8 +242,6 @@ static void setid3v2title(int fd, struct mp3entry *entry)
!strncmp(header, "TT2", strlen("TT2"))) {
readsize++;
headerlen--;
- if(headerlen > (size - readsize))
- headerlen = (size - readsize);
title = buffer + readsize;
titlen = headerlen;
readsize += headerlen;
@@ -253,8 +249,6 @@ static void setid3v2title(int fd, struct mp3entry *entry)
else if(!strncmp(header, "TALB", strlen("TALB"))) {
readsize++;
headerlen--;
- if(headerlen > (size - readsize))
- headerlen = (size - readsize);
album = buffer + readsize;
albumn = headerlen;
readsize += headerlen;
@@ -262,8 +256,6 @@ static void setid3v2title(int fd, struct mp3entry *entry)
else if(!strncmp(header, "TRCK", strlen("TRCK"))) {
readsize++;
headerlen--;
- if(headerlen > (size - readsize))
- headerlen = (size - readsize);
tracknum = buffer + readsize;
tracknumn = headerlen;
readsize += headerlen;