Remove a redundant check of max_workers > 1.
Remove a redundant check of max_workers > 1 in
av1_compute_num_enc_workers(). The function returns immediately if
max_workers <= 1, so max_workers > 1 is true after that return
statement.
Change-Id: Ibd82a2a3922c30d0ce47712692675ffb2d87e3ff
diff --git a/av1/encoder/ethread.c b/av1/encoder/ethread.c
index 3c18fdc..4eaa0ad 100644
--- a/av1/encoder/ethread.c
+++ b/av1/encoder/ethread.c
@@ -860,7 +860,7 @@
// Computes the number of workers for encoding stage (row/tile multi-threading)
int av1_compute_num_enc_workers(AV1_COMP *cpi, int max_workers) {
if (max_workers <= 1) return 1;
- if (cpi->oxcf.row_mt && (max_workers > 1))
+ if (cpi->oxcf.row_mt)
return compute_num_enc_row_mt_workers(&cpi->common, max_workers);
else
return compute_num_enc_tile_mt_workers(&cpi->common, max_workers);