diff options
author | Björn Stenberg <bjorn@haxx.se> | 2011-04-06 21:08:31 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2011-04-06 21:08:31 +0000 |
commit | 2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc (patch) | |
tree | 5aac90ad9ea5356d8fc6510619a9e14b0eb016aa /apps/metadata/sid.c | |
parent | 2c297760df2d512841d6ad1cb38d09b574530cef (diff) |
Removed some dead code identified by clang-analyzer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29685 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/sid.c')
-rw-r--r-- | apps/metadata/sid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/metadata/sid.c b/apps/metadata/sid.c index d4e6627778..50b879b56d 100644 --- a/apps/metadata/sid.c +++ b/apps/metadata/sid.c @@ -36,12 +36,11 @@ bool get_sid_metadata(int fd, struct mp3entry* id3) { /* Use the trackname part of the id3 structure as a temporary buffer */ unsigned char* buf = (unsigned char *)id3->path; - int read_bytes; char *p; if ((lseek(fd, 0, SEEK_SET) < 0) - || ((read_bytes = read(fd, buf, 0x80)) < 0x80)) + || (read(fd, buf, 0x80) < 0x80)) { return false; } @@ -70,7 +69,7 @@ bool get_sid_metadata(int fd, struct mp3entry* id3) /* Copy Album (assumed max 0x1f-0x05 letters + 1 zero byte) */ id3->album = p; buf[0x56+0x1f] = 0; - p = iso_decode(&buf[0x5b], p, 0, strlen(&buf[0x5b])+1); + iso_decode(&buf[0x5b], p, 0, strlen(&buf[0x5b])+1); id3->bitrate = 706; id3->frequency = 44100; |