From a6df1fd48df8942f716e4f09781aa6826b541517 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 16 Sep 2002 10:42:27 +0000 Subject: [PATCH] removed redundant size checks git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2298 a1c6a512-1295-4272-9138-f99709370657 --- firmware/id3.c | 8 -------- 1 file changed, 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;