lavc/pthread_slice: remove pointless condition
authorClément Bœsch <u@pkh.me>
Wed, 29 Mar 2017 10:20:32 +0000 (12:20 +0200)
committerClément Bœsch <u@pkh.me>
Wed, 29 Mar 2017 12:49:29 +0000 (14:49 +0200)
libavcodec/pthread_slice.c

index 96a7643f6a2089acd507ae71baf1122e4ea865b2..60f5b7889190a4da08157ca311fad8c0b226c621 100644 (file)
@@ -156,11 +156,7 @@ static int thread_execute(AVCodecContext *avctx, action_func* func, void *arg, i
     c->job_size = job_size;
     c->args = arg;
     c->func = func;
-    if (ret) {
-        c->rets = ret;
-    } else {
-        c->rets = NULL;
-    }
+    c->rets = ret;
     c->current_execute++;
     pthread_cond_broadcast(&c->current_job_cond);