summaryrefslogtreecommitdiff
path: root/apps/metadata/adx.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/adx.c
parent2c297760df2d512841d6ad1cb38d09b574530cef (diff)
downloadrockbox-2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc.tar.gz
rockbox-2d00f0c8b25d4a513ac9e4a78f25b528a01cb0fc.zip
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/adx.c')
-rw-r--r--apps/metadata/adx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/metadata/adx.c b/apps/metadata/adx.c
index a903a6d053..4e18254d79 100644
--- a/apps/metadata/adx.c
+++ b/apps/metadata/adx.c
@@ -34,12 +34,12 @@ bool get_adx_metadata(int fd, struct mp3entry* id3)
34{ 34{
35 /* Use the trackname part of the id3 structure as a temporary buffer */ 35 /* Use the trackname part of the id3 structure as a temporary buffer */
36 unsigned char * buf = (unsigned char *)id3->path; 36 unsigned char * buf = (unsigned char *)id3->path;
37 int chanstart, channels, read_bytes; 37 int chanstart, channels;
38 int looping = 0, start_adr = 0, end_adr = 0; 38 int looping = 0, start_adr = 0, end_adr = 0;
39 39
40 /* try to get the basic header */ 40 /* try to get the basic header */
41 if ((lseek(fd, 0, SEEK_SET) < 0) 41 if ((lseek(fd, 0, SEEK_SET) < 0)
42 || ((read_bytes = read(fd, buf, 0x38)) < 0x38)) 42 || (read(fd, buf, 0x38) < 0x38))
43 { 43 {
44 DEBUGF("lseek or read failed\n"); 44 DEBUGF("lseek or read failed\n");
45 return false; 45 return false;
@@ -106,7 +106,7 @@ bool get_adx_metadata(int fd, struct mp3entry* id3)
106 106
107 /* try to get the channel header */ 107 /* try to get the channel header */
108 if ((lseek(fd, chanstart-6, SEEK_SET) < 0) 108 if ((lseek(fd, chanstart-6, SEEK_SET) < 0)
109 || ((read_bytes = read(fd, buf, 6)) < 6)) 109 || (read(fd, buf, 6) < 6))
110 { 110 {
111 return false; 111 return false;
112 } 112 }