Merge pull request #348 from dragos-oancea/spandsp-t4_tx-res--val-never-read

[spandsp] scan-build: Value stored to 'res' is never read - t4_tx_set_tx_image_format()
This commit is contained in:
Andrey Volk 2020-02-14 00:27:20 +04:00 committed by GitHub
commit 06aad5f558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1869,7 +1869,6 @@ SPAN_DECLARE(int) t4_tx_set_tx_image_format(t4_tx_state_t *s,
break;
}
}
res = T4_IMAGE_FORMAT_NOSIZESUPPORT;
s->row_squashing_ratio = 1;
if (s->metadata.width_code >= 0 && (supported_image_sizes & s->metadata.width_code))
{