From 2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Wed, 6 Apr 2011 21:08:31 +0000 Subject: Removed some dead code identified by clang-analyzer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29685 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/sid.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/metadata/sid.c') diff --git a/apps/metadata/sid.c b/apps/metadata/sid.c index d4e6627..50b879b 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; -- cgit v1.1