aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-23 18:29:43 +0100
committerMax Kellermann <max@duempel.org>2013-11-23 18:30:12 +0100
commitae88ba986e0c50d922845f65d9b432404f41c532 (patch)
tree295fc142f2bce39f2a470eae43f54049a7226879 /src/archive
parentd6247902eca44aa45f92ac095397738f7f633283 (diff)
downloadmpd-ae88ba986e0c50d922845f65d9b432404f41c532.tar.gz
mpd-ae88ba986e0c50d922845f65d9b432404f41c532.tar.xz
mpd-ae88ba986e0c50d922845f65d9b432404f41c532.zip
archive/iso9660: eliminate useless assignments
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/Iso9660ArchivePlugin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/archive/Iso9660ArchivePlugin.cxx b/src/archive/Iso9660ArchivePlugin.cxx
index 8233d03f7..ad21d4a3d 100644
--- a/src/archive/Iso9660ArchivePlugin.cxx
+++ b/src/archive/Iso9660ArchivePlugin.cxx
@@ -190,18 +190,16 @@ iso9660_input_read(InputStream *is, void *ptr, size_t size,
Error &error)
{
Iso9660InputStream *iis = (Iso9660InputStream *)is;
- int toread, readed = 0;
+ int readed = 0;
int no_blocks, cur_block;
size_t left_bytes = iis->statbuf->size - is->offset;
size = (size * ISO_BLOCKSIZE) / ISO_BLOCKSIZE;
if (left_bytes < size) {
- toread = left_bytes;
no_blocks = CEILING(left_bytes,ISO_BLOCKSIZE);
} else {
- toread = size;
- no_blocks = toread / ISO_BLOCKSIZE;
+ no_blocks = size / ISO_BLOCKSIZE;
}
if (no_blocks > 0) {