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/nsf.c | |
| parent | 2c297760df2d512841d6ad1cb38d09b574530cef (diff) | |
| download | rockbox-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/nsf.c')
| -rw-r--r-- | apps/metadata/nsf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/metadata/nsf.c b/apps/metadata/nsf.c index e1ad331..abb4e6f 100644 --- a/apps/metadata/nsf.c +++ b/apps/metadata/nsf.c @@ -14,12 +14,10 @@ bool get_nsf_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, 110)) < 110)) + || (read(fd, buf, 110) < 110)) { return false; } @@ -55,7 +53,6 @@ bool get_nsf_metadata(int fd, struct mp3entry* id3) /* Copyright (per codec) */ memcpy(p, &buf[78], 32); id3->album = p; - p += strlen(p)+1; return true; } |