archive/iso9660: eliminate useless assignments
This commit is contained in:
parent
d6247902ec
commit
ae88ba986e
@ -190,18 +190,16 @@ iso9660_input_read(InputStream *is, void *ptr, size_t size,
|
|||||||
Error &error)
|
Error &error)
|
||||||
{
|
{
|
||||||
Iso9660InputStream *iis = (Iso9660InputStream *)is;
|
Iso9660InputStream *iis = (Iso9660InputStream *)is;
|
||||||
int toread, readed = 0;
|
int readed = 0;
|
||||||
int no_blocks, cur_block;
|
int no_blocks, cur_block;
|
||||||
size_t left_bytes = iis->statbuf->size - is->offset;
|
size_t left_bytes = iis->statbuf->size - is->offset;
|
||||||
|
|
||||||
size = (size * ISO_BLOCKSIZE) / ISO_BLOCKSIZE;
|
size = (size * ISO_BLOCKSIZE) / ISO_BLOCKSIZE;
|
||||||
|
|
||||||
if (left_bytes < size) {
|
if (left_bytes < size) {
|
||||||
toread = left_bytes;
|
|
||||||
no_blocks = CEILING(left_bytes,ISO_BLOCKSIZE);
|
no_blocks = CEILING(left_bytes,ISO_BLOCKSIZE);
|
||||||
} else {
|
} else {
|
||||||
toread = size;
|
no_blocks = size / ISO_BLOCKSIZE;
|
||||||
no_blocks = toread / ISO_BLOCKSIZE;
|
|
||||||
}
|
}
|
||||||
if (no_blocks > 0) {
|
if (no_blocks > 0) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user