summaryrefslogtreecommitdiff
path: root/apps/metadata/spc.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2011-04-06 21:08:31 +0000
committerBjörn Stenberg <bjorn@haxx.se>2011-04-06 21:08:31 +0000
commit2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc (patch)
tree5aac90ad9ea5356d8fc6510619a9e14b0eb016aa /apps/metadata/spc.c
parent2c297760df2d512841d6ad1cb38d09b574530cef (diff)
downloadrockbox-2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc.zip
rockbox-2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc.tar.gz
rockbox-2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc.tar.bz2
rockbox-2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc.tar.xz
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/spc.c')
-rw-r--r--apps/metadata/spc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/metadata/spc.c b/apps/metadata/spc.c
index f1fcb81..1c02062 100644
--- a/apps/metadata/spc.c
+++ b/apps/metadata/spc.c
@@ -35,7 +35,6 @@ bool get_spc_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;
unsigned long length;
@@ -45,7 +44,7 @@ bool get_spc_metadata(int fd, struct mp3entry* id3)
/* try to get the ID666 tag */
if ((lseek(fd, 0x2e, SEEK_SET) < 0)
- || ((read_bytes = read(fd, buf, 0xD2)) < 0xD2))
+ || (read(fd, buf, 0xD2) < 0xD2))
{
DEBUGF("lseek or read failed\n");
return false;
@@ -115,7 +114,7 @@ bool get_spc_metadata(int fd, struct mp3entry* id3)
id3->artist = p;
buf[31] = 0;
- p = iso_decode(buf, p, 0, 32);
+ iso_decode(buf, p, 0, 32);
if (length==0) {
length=3*60*1000; /* 3 minutes */